]>
Commit | Line | Data |
---|---|---|
53e12188 AD |
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
2 | ||
784bb4c3 | 3 | {% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% endblock %} |
53e12188 AD |
4 | |
5 | {% block menu %} | |
fcb3faf1 AD |
6 | <div class="progress"> |
7 | <div class="determinate"></div> | |
8 | </div> | |
b17874a7 AD |
9 | <nav class="hide-on-large-only"> |
10 | <div class="nav-wrapper cyan darken-1"> | |
11 | <ul> | |
12 | <li> | |
fad31615 | 13 | <a class="waves-effect" href="{{ path('homepage') }}"> |
b17874a7 AD |
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> | |
9948d899 | 37 | <ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion"> |
b17874a7 | 38 | <li class="bold border-bottom hide-on-med-and-down"> |
fad31615 | 39 | <a class="waves-effect collapsible-header" href="{{ path('homepage') }}"> |
53e12188 AD |
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 | ||
9cc6bd87 NL |
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 | ||
b17874a7 | 54 | <li class="bold hide-on-med-and-down"> |
53e12188 AD |
55 | <a class="waves-effect collapsible-header" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead"> |
56 | <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i> | |
cfb28c9d | 57 | <span>{% trans %}Mark as read{% endtrans %}</span> |
53e12188 AD |
58 | </a> |
59 | <div class="collapsible-body"></div> | |
60 | </li> | |
61 | ||
b17874a7 | 62 | <li class="bold hide-on-med-and-down"> |
53e12188 AD |
63 | <a class="waves-effect collapsible-header" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav"> |
64 | <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i> | |
cfb28c9d | 65 | <span>{% trans %}Favorite{% endtrans %}</span> |
53e12188 AD |
66 | </a> |
67 | <div class="collapsible-body"></div> | |
68 | </li> | |
b17874a7 | 69 | <li class="bold border-bottom hide-on-med-and-down"> |
53e12188 AD |
70 | <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}"> |
71 | <i class="mdi-action-delete small"></i> | |
72 | <span>{% trans %}Delete{% endtrans %}</span> | |
73 | </a> | |
74 | <div class="collapsible-body"></div> | |
75 | </li> | |
76 | ||
a754db33 NL |
77 | <li class="bold border-bottom hide-on-med-and-down"> |
78 | <a class="waves-effect collapsible-header" id="nav-btn-add-tag"> | |
79 | <i class="mdi-action-label-outline small"></i> | |
80 | <span>{% trans %}Add a tag{% endtrans %}</span> | |
81 | </a> | |
82 | <div class="collapsible-body"></div> | |
83 | </li> | |
84 | ||
53e12188 AD |
85 | <li class="bold"> |
86 | <a class="waves-effect collapsible-header"> | |
87 | <i class="mdi-social-share small"></i> | |
88 | <span>{% trans %}Share{% endtrans %}</span> | |
89 | </a> | |
90 | <div class="collapsible-body"> | |
91 | <ul> | |
120544cc | 92 | {% 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 %} |
53e12188 | 93 | {% 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 %} |
120544cc | 94 | {% 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 %} |
53e12188 AD |
95 | {# {% 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 %} #} |
96 | {% 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 %} | |
97 | {% 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 %} | |
98 | </ul> | |
99 | </div> | |
100 | </li> | |
101 | ||
102 | <li class="bold"> | |
103 | <a class="waves-effect collapsible-header"> | |
104 | <i class="mdi-file-file-download small"></i> | |
120544cc | 105 | <span><del>{% trans %}Download{% endtrans %}</del></span> |
53e12188 AD |
106 | </a> |
107 | <div class="collapsible-body"> | |
108 | <ul> | |
120544cc NL |
109 | {% if export_epub %}<li><del><a href="?epub&method=id&value={{ entry.id }}" title="Generate ePub file">EPUB</a></del></li>{% endif %} |
110 | {% if export_mobi %}<li><del><a href="?mobi&method=id&value={{ entry.id }}" title="Generate Mobi file">MOBI</a></del></li>{% endif %} | |
111 | {% if export_pdf %}<li><del><a href="?pdf&method=id&value={{ entry.id }}" title="Generate PDF file">PDF</a></del> </li>{% endif %} | |
53e12188 AD |
112 | </ul> |
113 | </div> | |
114 | </li> | |
115 | ||
b17874a7 AD |
116 | <li class="bold hide-on-large-only"> |
117 | <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}"> | |
118 | <i class="mdi-action-delete small"></i> | |
119 | <span>{% trans %}Delete{% endtrans %}</span> | |
120 | </a> | |
121 | <div class="collapsible-body"></div> | |
122 | </li> | |
123 | ||
53e12188 AD |
124 | <li class="bold"> |
125 | <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 %}"> | |
126 | <i class="mdi-alert-error small"></i> | |
127 | <span>{% trans %}Problems?{% endtrans %}</span> | |
128 | </a> | |
129 | <div class="collapsible-body"></div> | |
130 | </li> | |
131 | ||
132 | </ul> | |
133 | ||
53e12188 AD |
134 | <style> |
135 | main { | |
136 | padding: 0; | |
137 | } | |
138 | </style> | |
139 | {% endblock %} | |
140 | ||
141 | {% block content %} | |
142 | <div id="article"> | |
143 | <header class="mbm"> | |
b17874a7 | 144 | <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit title{% endtrans %}">✎</a></h1> |
53e12188 | 145 | </header> |
a754db33 | 146 | <aside> |
784bb4c3 | 147 | <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> |
a754db33 | 148 | <div id="list"> |
9c8f7af1 TC |
149 | {% for tag in entry.tags %} |
150 | <div class="chip"> | |
68e9dcf6 | 151 | {{ tag.label }} |
9c8f7af1 TC |
152 | </div> |
153 | {% endfor %} | |
a754db33 NL |
154 | </div> |
155 | ||
e610143f NL |
156 | {% if entry.previewPicture is not null %} |
157 | <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div> | |
158 | {% endif %} | |
159 | ||
a754db33 NL |
160 | <div class="input-field nav-panel-add-tag" style="display: none"> |
161 | {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }} | |
162 | </div> | |
163 | ||
53e12188 AD |
164 | </aside> |
165 | <article> | |
166 | {{ entry.content | raw }} | |
167 | </article> | |
168 | </div> | |
169 | {% endblock %} | |
170 | ||
171 | {% block footer %} | |
c2257428 | 172 | {% endblock %} |