]>
Commit | Line | Data |
---|---|---|
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | |
2 | ||
3 | {% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% 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="{{ path('homepage') }}"> | |
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="{{ path('homepage') }}"> | |
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 border-bottom hide-on-med-and-down"> | |
47 | <a class="waves-effect collapsible-header" href="{{ entry.url|e }}"> | |
48 | <i class="mdi-content-link small"></i> | |
49 | <span>{% trans %}original article{% 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 %}Reload content{% endtrans %}" href="{{ path('reload_entry', { 'id': entry.id }) }}" id="reload"> | |
56 | <i class="mdi-action-autorenew small"></i> | |
57 | <span>{% trans %}Reload content{% endtrans %}</span> | |
58 | </a> | |
59 | <div class="collapsible-body"></div> | |
60 | </li> | |
61 | ||
62 | <li class="bold hide-on-med-and-down"> | |
63 | <a class="waves-effect collapsible-header" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead"> | |
64 | <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i> | |
65 | <span>{% if entry.isArchived == 0 %}{% trans %}Mark as read{% endtrans %}{% else %}{% trans %}Mark as unread{% endtrans %}{% endif %}</span> | |
66 | </a> | |
67 | <div class="collapsible-body"></div> | |
68 | </li> | |
69 | ||
70 | <li class="bold hide-on-med-and-down"> | |
71 | <a class="waves-effect collapsible-header" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav"> | |
72 | <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i> | |
73 | <span>{% trans %}Favorite{% endtrans %}</span> | |
74 | </a> | |
75 | <div class="collapsible-body"></div> | |
76 | </li> | |
77 | <li class="bold border-bottom hide-on-med-and-down"> | |
78 | <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}"> | |
79 | <i class="mdi-action-delete small"></i> | |
80 | <span>{% trans %}Delete{% endtrans %}</span> | |
81 | </a> | |
82 | <div class="collapsible-body"></div> | |
83 | </li> | |
84 | ||
85 | <li class="bold border-bottom hide-on-med-and-down"> | |
86 | <a class="waves-effect collapsible-header" id="nav-btn-add-tag"> | |
87 | <i class="mdi-action-label-outline small"></i> | |
88 | <span>{% trans %}Add a tag{% endtrans %}</span> | |
89 | </a> | |
90 | <div class="collapsible-body"></div> | |
91 | </li> | |
92 | ||
93 | <li class="bold"> | |
94 | <a class="waves-effect collapsible-header"> | |
95 | <i class="mdi-social-share small"></i> | |
96 | <span>{% trans %}Share{% endtrans %}</span> | |
97 | </a> | |
98 | <div class="collapsible-body"> | |
99 | <ul> | |
100 | {% 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 %} | |
101 | {% if share_shaarli %}<li><a href="{{ shaarli_url }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans %}shaarli{% endtrans %}"><span>{% trans %}shaarli{% endtrans %}</span></a></li>{% endif %} | |
102 | {% if share_diaspora %}<li><a href="{{ diaspora_url }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}¬es=&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 %} | |
103 | {# {% 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 %} #} | |
104 | {% 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 %} | |
105 | {% if share_mail %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&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 %} | |
106 | </ul> | |
107 | </div> | |
108 | </li> | |
109 | ||
110 | <li class="bold"> | |
111 | <a class="waves-effect collapsible-header"> | |
112 | <i class="mdi-file-file-download small"></i> | |
113 | <span>{% trans %}Download{% endtrans %}</span> | |
114 | </a> | |
115 | <div class="collapsible-body"> | |
116 | <ul> | |
117 | {% if export_epub %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'epub' }) }}" title="Generate ePub file">EPUB</a></li>{% endif %} | |
118 | {% if export_mobi %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'mobi' }) }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | |
119 | {% if export_pdf %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'pdf' }) }}" title="Generate PDF file">PDF</a></li>{% endif %} | |
120 | {% if export_csv %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'csv' }) }}" title="Generate CSV file">CSV</a></li>{% endif %} | |
121 | {% if export_json %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'json' }) }}" title="Generate JSON file">JSON</a></li>{% endif %} | |
122 | {% if export_txt %}<li><del><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'txt' }) }}" title="Generate TXT file">TXT</a></del></li>{% endif %} | |
123 | {% if export_xml %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'xml' }) }}" title="Generate XML file">XML</a></li>{% endif %} | |
124 | </ul> | |
125 | </div> | |
126 | </li> | |
127 | ||
128 | <li class="bold hide-on-large-only"> | |
129 | <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}"> | |
130 | <i class="mdi-action-delete small"></i> | |
131 | <span>{% trans %}Delete{% endtrans %}</span> | |
132 | </a> | |
133 | <div class="collapsible-body"></div> | |
134 | </li> | |
135 | ||
136 | <li class="bold"> | |
137 | <a class="waves-effect collapsible-header" href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans %}Does this article appear wrong?{% endtrans %}"> | |
138 | <i class="mdi-alert-error small"></i> | |
139 | <span>{% trans %}Problems?{% endtrans %}</span> | |
140 | </a> | |
141 | <div class="collapsible-body"></div> | |
142 | </li> | |
143 | ||
144 | </ul> | |
145 | ||
146 | <style> | |
147 | main { | |
148 | padding: 0; | |
149 | } | |
150 | </style> | |
151 | {% endblock %} | |
152 | ||
153 | {% block content %} | |
154 | <div id="article"> | |
155 | <header class="mbm"> | |
156 | <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit title{% endtrans %}">✎</a></h1> | |
157 | </header> | |
158 | <aside> | |
159 | <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link mdi-content-link"> <span>{{ entry.domainName|removeWww }}</span></a> | |
160 | <div id="list"> | |
161 | {% for tag in entry.tags %} | |
162 | <div class="chip"> | |
163 | {{ tag.label }} | |
164 | </div> | |
165 | {% endfor %} | |
166 | </div> | |
167 | ||
168 | {% if entry.previewPicture is not null %} | |
169 | <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div> | |
170 | {% endif %} | |
171 | ||
172 | <div class="input-field nav-panel-add-tag" style="display: none"> | |
173 | {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }} | |
174 | </div> | |
175 | ||
176 | </aside> | |
177 | <article> | |
178 | {{ entry.content | raw }} | |
179 | </article> | |
180 | </div> | |
181 | {% endblock %} | |
182 | ||
183 | {% block footer %} | |
184 | {% endblock %} |