]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
add test
[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 <nav class="hide-on-large-only">
7 <div class="nav-wrapper cyan darken-1">
8 <ul>
9 <li>
10 <a class="waves-effect" href="/">
11 <i class="mdi-action-exit-to-app"></i>
12 </a>
13 </li>
14 </ul>
15 <ul class="right">
16 <li>
17 <a class="waves-effect" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
18 <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i>
19 </a>
20 </li>
21 <li>
22 <a class="waves-effect" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
23 <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i>
24 </a>
25 </li>
26 <li>
27 <a href="#" data-activates="slide-out" class="button-collapse right">
28 <i class="mdi-navigation-menu"></i>
29 </a>
30 </li>
31 </ul>
32 </div>
33 </nav>
34 <ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion">
35 <li class="bold border-bottom hide-on-med-and-down">
36 <a class="waves-effect collapsible-header" href="/">
37 <i class="mdi-action-exit-to-app small"></i>
38 <span>{% trans %}back{% endtrans %}</span>
39 </a>
40 <div class="collapsible-body"></div>
41 </li>
42
43 <li class="bold hide-on-med-and-down">
44 <a class="waves-effect collapsible-header" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
45 <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i>
46 <span>{% trans %}Toggle mark as read{% endtrans %}</span>
47 </a>
48 <div class="collapsible-body"></div>
49 </li>
50
51 <li class="bold hide-on-med-and-down">
52 <a class="waves-effect collapsible-header" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
53 <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i>
54 <span>{% trans %}Toggle favorite{% endtrans %}</span>
55 </a>
56 <div class="collapsible-body"></div>
57 </li>
58 <li class="bold border-bottom hide-on-med-and-down">
59 <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
60 <i class="mdi-action-delete small"></i>
61 <span>{% trans %}Delete{% endtrans %}</span>
62 </a>
63 <div class="collapsible-body"></div>
64 </li>
65
66 <li class="bold">
67 <a class="waves-effect collapsible-header">
68 <i class="mdi-social-share small"></i>
69 <span>{% trans %}Share{% endtrans %}</span>
70 </a>
71 <div class="collapsible-body">
72 <ul>
73 {% 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 %}
74 {% 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 %}
75 {% 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 %}
76 {# {% 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 %} #}
77 {% 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 %}
78 {% 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 %}
79 </ul>
80 </div>
81 </li>
82
83 <li class="bold">
84 <a class="waves-effect collapsible-header">
85 <i class="mdi-file-file-download small"></i>
86 <span><del>{% trans %}Download{% endtrans %}</del></span>
87 </a>
88 <div class="collapsible-body">
89 <ul>
90 {% if export_epub %}<li><del><a href="?epub&amp;method=id&amp;value={{ entry.id }}" title="Generate ePub file">EPUB</a></del></li>{% endif %}
91 {% if export_mobi %}<li><del><a href="?mobi&amp;method=id&amp;value={{ entry.id }}" title="Generate Mobi file">MOBI</a></del></li>{% endif %}
92 {% if export_pdf %}<li><del><a href="?pdf&amp;method=id&amp;value={{ entry.id }}" title="Generate PDF file">PDF</a></del> </li>{% endif %}
93 </ul>
94 </div>
95 </li>
96
97 <li class="bold hide-on-large-only">
98 <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
99 <i class="mdi-action-delete small"></i>
100 <span>{% trans %}Delete{% endtrans %}</span>
101 </a>
102 <div class="collapsible-body"></div>
103 </li>
104
105 <li class="bold">
106 <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 %}">
107 <i class="mdi-alert-error small"></i>
108 <span>{% trans %}Problems?{% endtrans %}</span>
109 </a>
110 <div class="collapsible-body"></div>
111 </li>
112
113 </ul>
114
115 <style>
116 main {
117 padding: 0;
118 }
119 </style>
120 {% endblock %}
121
122 {% block content %}
123 <div id="article">
124 <header class="mbm">
125 <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit title{% endtrans %}">✎</a></h1>
126 <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.domainName }}</span></a>
127 </header>
128 <aside class="tags">
129 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>
130 </aside>
131 <article>
132 {{ entry.content | raw }}
133 </article>
134 </div>
135 {% endblock %}
136
137 {% block footer %}
138 {% endblock %}