]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
My implementation progress bar at the top of the page #1348
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entry.html.twig
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}{{ entry.title|raw }} ({{ entry.domainName }}){% endblock %}
4
5 {% block menu %}
6 <div class="progress">
7 <div class="determinate"></div>
8 </div>
9 <nav class="hide-on-large-only">
10 <div class="nav-wrapper cyan darken-1">
11 <ul>
12 <li>
13 <a class="waves-effect" href="/">
14 <i class="mdi-action-exit-to-app"></i>
15 </a>
16 </li>
17 </ul>
18 <ul class="right">
19 <li>
20 <a class="waves-effect" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
21 <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i>
22 </a>
23 </li>
24 <li>
25 <a class="waves-effect" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
26 <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i>
27 </a>
28 </li>
29 <li>
30 <a href="#" data-activates="slide-out" class="button-collapse right">
31 <i class="mdi-navigation-menu"></i>
32 </a>
33 </li>
34 </ul>
35 </div>
36 </nav>
37 <ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion">
38 <li class="bold border-bottom hide-on-med-and-down">
39 <a class="waves-effect collapsible-header" href="/">
40 <i class="mdi-action-exit-to-app small"></i>
41 <span>{% trans %}back{% endtrans %}</span>
42 </a>
43 <div class="collapsible-body"></div>
44 </li>
45
46 <li class="bold hide-on-med-and-down">
47 <a class="waves-effect collapsible-header" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
48 <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i>
49 <span>{% trans %}Toggle mark as read{% endtrans %}</span>
50 </a>
51 <div class="collapsible-body"></div>
52 </li>
53
54 <li class="bold hide-on-med-and-down">
55 <a class="waves-effect collapsible-header" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
56 <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i>
57 <span>{% trans %}Toggle favorite{% endtrans %}</span>
58 </a>
59 <div class="collapsible-body"></div>
60 </li>
61 <li class="bold border-bottom hide-on-med-and-down">
62 <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
63 <i class="mdi-action-delete small"></i>
64 <span>{% trans %}Delete{% endtrans %}</span>
65 </a>
66 <div class="collapsible-body"></div>
67 </li>
68
69 <li class="bold">
70 <a class="waves-effect collapsible-header">
71 <i class="mdi-social-share small"></i>
72 <span>{% trans %}Share{% endtrans %}</span>
73 </a>
74 <div class="collapsible-body">
75 <ul>
76 {% if share_twitter %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter icon icon-twitter" title="{% trans %}twitter{% endtrans %}"><span>{% trans %}twitter{% endtrans %}</span></a></li>{% endif %}
77 {% if share_shaarli %}<li><a href="{{ shaarli_url }}/index.php?post={{ entry.url|url_encode }}&amp;title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans %}shaarli{% endtrans %}"><span>{% trans %}shaarli{% endtrans %}</span></a></li>{% endif %}
78 {% if share_diaspora %}<li><a href="{{ diaspora_url }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}&notes=&v=1&noui=1&jump=doclose" target="_blank" class="tool diaspora icon-image icon-image--diaspora" title="{% trans %}diaspora*{% endtrans %}"><span>{% trans %}diaspora*{% endtrans %}</span></a></li>{% endif %}
79 {# {% if flattr %}{% if flattr.status == flattrable %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}"><span>{% trans %}flattr{% endtrans %}</span></a></li>{% elseif flattr.status == flattred %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr icon icon-flattr" target="_blank" title="{% trans %}flattr{% endtrans %}><span>{% trans %}flattr{% endtrans %}</span> ({{ flattr.numFlattrs }})</a></li>{% endif %}{% endif %} #}
80 {% if carrot %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="{% trans %}carrot{% endtrans %}"><span>Carrot</span></a></li>{% endif %}
81 {% if share_mail %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&amp;body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email icon icon-mail" title="{% trans %}Email{% endtrans %}"><span>{% trans %}Email{% endtrans %}</span></a></li>{% endif %}
82 </ul>
83 </div>
84 </li>
85
86 <li class="bold">
87 <a class="waves-effect collapsible-header">
88 <i class="mdi-file-file-download small"></i>
89 <span><del>{% trans %}Download{% endtrans %}</del></span>
90 </a>
91 <div class="collapsible-body">
92 <ul>
93 {% if export_epub %}<li><del><a href="?epub&amp;method=id&amp;value={{ entry.id }}" title="Generate ePub file">EPUB</a></del></li>{% endif %}
94 {% if export_mobi %}<li><del><a href="?mobi&amp;method=id&amp;value={{ entry.id }}" title="Generate Mobi file">MOBI</a></del></li>{% endif %}
95 {% if export_pdf %}<li><del><a href="?pdf&amp;method=id&amp;value={{ entry.id }}" title="Generate PDF file">PDF</a></del> </li>{% endif %}
96 </ul>
97 </div>
98 </li>
99
100 <li class="bold hide-on-large-only">
101 <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
102 <i class="mdi-action-delete small"></i>
103 <span>{% trans %}Delete{% endtrans %}</span>
104 </a>
105 <div class="collapsible-body"></div>
106 </li>
107
108 <li class="bold">
109 <a class="waves-effect collapsible-header" href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&amp;body={{ entry.url|url_encode }}" title="{% trans %}Does this article appear wrong?{% endtrans %}">
110 <i class="mdi-alert-error small"></i>
111 <span>{% trans %}Problems?{% endtrans %}</span>
112 </a>
113 <div class="collapsible-body"></div>
114 </li>
115
116 </ul>
117
118 <style>
119 main {
120 padding: 0;
121 }
122 </style>
123 {% endblock %}
124
125 {% block content %}
126 <div id="article">
127 <header class="mbm">
128 <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit title{% endtrans %}">✎</a></h1>
129 <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.domainName }}</span></a>
130 </header>
131 <aside class="tags">
132 tags: {% for tag in entry.tags %}<a href="./?view=tag&amp;id={{ tag.id }}">{{ tag.label }}</a> {% endfor %}<a href="./?view=edit-tags&amp;id={{ entry.id }}" title="{% trans %}Edit tags{% endtrans %}">✎</a>
133 </aside>
134 <article>
135 {{ entry.content | raw }}
136 </article>
137 </div>
138 {% endblock %}
139
140 {% block footer %}
141 {% endblock %}