]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
Merge pull request #1279 from wallabag/material-default
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entry.html.twig
CommitLineData
53e12188
AD
1{% extends "WallabagCoreBundle::layout.html.twig" %}
2
3{% block title %}{{ entry.title|raw }} ({{ entry.url | e | domainName }}){% endblock %}
4
5{% block menu %}
9948d899 6 <ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion">
53e12188
AD
7 <li class="bold border-bottom">
8 <a class="waves-effect collapsible-header" href="/">
9 <i class="mdi-action-exit-to-app small"></i>
10 <span>{% trans %}back{% endtrans %}</span>
11 </a>
12 <div class="collapsible-body"></div>
13 </li>
14
15 <li class="bold">
16 <a class="waves-effect collapsible-header" title="{% trans %}Mark as read{% endtrans %}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
17 <i class="{% if entry.isArchived == 0 %}mdi-action-done{% else %}mdi-content-redo{% endif %} small"></i>
18 <span>{% trans %}Toggle mark as read{% endtrans %}</span>
19 </a>
20 <div class="collapsible-body"></div>
21 </li>
22
23 <li class="bold">
24 <a class="waves-effect collapsible-header" title="{% trans %}Favorite{% endtrans %}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
25 <i class="{% if entry.isStarred == 0 %}mdi-action-favorite-outline{% else %}mdi-action-favorite{% endif %} small"></i>
26 <span>{% trans %}Toggle favorite{% endtrans %}</span>
27 </a>
28 <div class="collapsible-body"></div>
29 </li>
30 <li class="bold border-bottom">
31 <a class="waves-effect collapsible-header" title="{% trans %}Delete{% endtrans %}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
32 <i class="mdi-action-delete small"></i>
33 <span>{% trans %}Delete{% endtrans %}</span>
34 </a>
35 <div class="collapsible-body"></div>
36 </li>
37
38 <li class="bold">
39 <a class="waves-effect collapsible-header">
40 <i class="mdi-social-share small"></i>
41 <span>{% trans %}Share{% endtrans %}</span>
42 </a>
43 <div class="collapsible-body">
44 <ul>
45 {% 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 %}Tweet{% endtrans %}"><span>{% trans %}Tweet{% endtrans %}</span></a></li>{% endif %}
46 {% 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 %}
47 {% 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 %}
48 {# {% 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 %} #}
49 {% 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 %}
50 {% 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 %}
51 </ul>
52 </div>
53 </li>
54
55 <li class="bold">
56 <a class="waves-effect collapsible-header">
57 <i class="mdi-file-file-download small"></i>
58 <span>{% trans %}Download{% endtrans %}</span>
59 </a>
60 <div class="collapsible-body">
61 <ul>
62 {% if export_epub %}<li><a href="?epub&amp;method=id&amp;value={{ entry.id }}" title="Generate ePub file">EPUB</a></li>{% endif %}
63 {% if export_mobi %}<li><a href="?mobi&amp;method=id&amp;value={{ entry.id }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
64 {% if export_pdf %}<li><a href="?pdf&amp;method=id&amp;value={{ entry.id }}" title="Generate PDF file">PDF</a></li>{% endif %}
65 </ul>
66 </div>
67 </li>
68
69 <li class="bold">
70 <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 %}">
71 <i class="mdi-alert-error small"></i>
72 <span>{% trans %}Problems?{% endtrans %}</span>
73 </a>
74 <div class="collapsible-body"></div>
75 </li>
76
77 </ul>
78
53e12188
AD
79<style>
80main {
81 padding: 0;
82}
83</style>
84{% endblock %}
85
86{% block content %}
87 <div id="article">
88 <header class="mbm">
89 <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{% trans %}Edit tags{% endtrans %}">✎</a></h1>
90 <a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link"><span>{{ entry.url | e | domainName }}</span></a>
91 </header>
92 <aside class="tags">
93 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>
94 </aside>
95 <article>
96 {{ entry.content | raw }}
97 </article>
98 </div>
99{% endblock %}
100
101{% block footer %}
102{% endblock %}