]>
Commit | Line | Data |
---|---|---|
ad4d1caa | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
bd9f0815 | 2 | |
784bb4c3 | 3 | {% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% endblock %} |
bd9f0815 | 4 | |
bd9f0815 | 5 | {% block content %} |
56349e47 TC |
6 | <div id="article"> |
7 | <header class="mbm"> | |
5ecdfcd0 | 8 | <h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" class="nostyle" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1> |
56349e47 TC |
9 | </header> |
10 | ||
11 | <div id="article_toolbar"> | |
79efca1e JB |
12 | <ul class="links"> |
13 | <li class="topPosF"><a href="#top" title="{{ 'entry.view.left_menu.back_to_top'|trans }}" class="tool top icon icon-arrow-up-thick"><span>{{ 'entry.view.left_menu.set_as_read'|trans }}</span></a></li> | |
14 | <li><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool link icon icon-link"><span>{{ entry.domainName|removeWww }}</span></a></li> | |
15 | <li><a title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" class="tool icon icon-reload" href="{{ path('reload_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span></a></li> | |
458beef0 NL |
16 | |
17 | {% set markAsReadLabel = 'entry.view.left_menu.set_as_unread' %} | |
18 | {% if entry.isArchived == 0 %} | |
19 | {% set markAsReadLabel = 'entry.view.left_menu.set_as_read' %} | |
20 | {% endif %} | |
21 | ||
22 | <li><a title="{{ markAsReadLabel|trans }}" class="tool icon icon-check {% if entry.isArchived == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{{ markAsReadLabel|trans }}</span></a></li> | |
79efca1e | 23 | <li><a title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" class="tool icon icon-star {% if entry.isStarred == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.set_as_starred'|trans }}</span></a></li> |
a494c33e | 24 | <li><a id="nav-btn-add-tag" class="tool icon icon-price-tags" title="{{ 'entry.view.left_menu.add_a_tag'|trans }}"><span>{{ 'entry.view.left_menu.add_a_tag'|trans }}</span></a></li> |
79efca1e | 25 | <li><a title="{{ 'entry.view.left_menu.delete'|trans }}" class="tool delete icon icon-trash" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{{ 'entry.view.left_menu.delete'|trans }}</span></a></li> |
a494c33e TC |
26 | {% if craue_setting('share_public') %} |
27 | <li><a href="{{ path('share', {'id': entry.id }) }}" target="_blank" class="tool icon icon-eye" title="{{ 'entry.view.left_menu.public_link'|trans }}"><span>{{ 'entry.view.left_menu.public_link'|trans }}</span></a></li> | |
28 | <li><a href="{{ path('delete_share', {'id': entry.id }) }}" class="tool icon icon-no-eye" title="{{ 'entry.view.left_menu.delete_public_link'|trans }}"><span>{{ 'entry.view.left_menu.delete_public_link'|trans }}</span></a></li> | |
29 | {% endif %} | |
79efca1e JB |
30 | {% if craue_setting('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="Tweet"><span>Tweet</span></a></li>{% endif %} |
31 | {% if craue_setting('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="Email"><span>Email</span></a></li>{% endif %} | |
a494c33e | 32 | {% if craue_setting('share_shaarli') %}<li><a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool icon-image icon-image--shaarli" title="shaarli"><span>shaarli</span></a></li>{% endif %} |
79efca1e JB |
33 | {% if craue_setting('share_diaspora') %}<li><a href="{{ craue_setting('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="diaspora"><span>diaspora</span></a></li>{% endif %} |
34 | {% if craue_setting('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="carrot"><span>Carrot</span></a></li>{% endif %} | |
35 | {% if craue_setting('show_printlink') %}<li><a title="{{ 'entry.view.left_menu.print'|trans }}" class="tool icon icon-print" href="javascript: window.print();"><span>{{ 'entry.view.left_menu.print'|trans }}</span></a></li>{% endif %} | |
36 | {% if craue_setting('export_epub') %}<li><a href="?epub&method=id&value={{ entry.id }}" title="Generate ePub file">EPUB</a></li>{% endif %} | |
37 | {% if craue_setting('export_mobi') %}<li><a href="?mobi&method=id&value={{ entry.id }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | |
38 | {% if craue_setting('export_pdf') %}<li><a href="?pdf&method=id&value={{ entry.id }}" title="Generate PDF file">PDF</a></li>{% endif %} | |
39 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li> | |
40 | </ul> | |
41 | </div> | |
d35ba2c3 | 42 | |
add0e14c | 43 | <div id="article-informations"> |
3e85e911 NL |
44 | <i class="tool icon icon-calendar" title="{{ 'entry.view.created_at'|trans }}"> |
45 | {{ entry.createdAt|date('Y-m-d') }} | |
a494c33e | 46 | </i> |
d35ba2c3 | 47 | |
a494c33e | 48 | <i class="tool icon icon-time"> |
add0e14c NL |
49 | {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} |
50 | {% if readingTime > 0 %} | |
a494c33e | 51 | {{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }} |
add0e14c | 52 | {% else %} |
a494c33e | 53 | {{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }} |
add0e14c | 54 | {% endif %} |
a494c33e | 55 | </i> |
add0e14c | 56 | |
add0e14c NL |
57 | <span class="tool link"><i class="material-icons link">comment</i> {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span> |
58 | <aside class="tags"> | |
645c0d5b | 59 | <div class="card-entry-tags"> |
add0e14c | 60 | {% for tag in entry.tags %} |
645c0d5b | 61 | <span class="label-outline"><i class="material-icons">label_outline</i> <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}" class="nostyle"><i>✘</i></a></span> |
add0e14c | 62 | {% endfor %} |
645c0d5b | 63 | </div> |
add0e14c NL |
64 | <div class="input-field nav-panel-add-tag" style="display: none"> |
65 | {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }} | |
66 | </div> | |
67 | </aside> | |
68 | </div> | |
b026d3b1 NL |
69 | {% if entry.previewPicture is not null %} |
70 | <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div> | |
71 | {% endif %} | |
bd9f0815 NL |
72 | <article> |
73 | {{ entry.content | raw }} | |
74 | </article> | |
75 | </div> | |
79efca1e | 76 | |
5ecdfcd0 TC |
77 | <script id="annotationroutes" type="application/json"> |
78 | { | |
79 | "prefix": "", | |
80 | "urls": { | |
81 | "create": "{{ path('annotations_post_annotation', { 'entry': entry.id }) }}", | |
82 | "update": "{{ path('annotations_put_annotation', { 'annotation': 'idAnnotation' }) }}", | |
83 | "destroy": "{{ path('annotations_delete_annotation', { 'annotation': 'idAnnotation' }) }}", | |
84 | "search": "{{ path('annotations_get_annotations', { 'entry': entry.id }) }}" | |
85 | }, | |
86 | "entryId": "{{ entry.id }}" | |
87 | } | |
bd9f0815 | 88 | </script> |
7df80cb3 | 89 | {% endblock %} |