2015-08-04 14:18:15 +00:00
|
|
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
|
|
|
|
2015-10-06 04:34:11 +00:00
|
|
|
{% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% endblock %}
|
2015-08-04 14:18:15 +00:00
|
|
|
|
2016-03-09 07:59:08 +00:00
|
|
|
{% block body_class %}entry{% endblock %}
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
{% block menu %}
|
2015-08-16 22:50:46 +00:00
|
|
|
<div class="progress">
|
|
|
|
<div class="determinate"></div>
|
|
|
|
</div>
|
2015-08-06 01:22:45 +00:00
|
|
|
<nav class="hide-on-large-only">
|
|
|
|
<div class="nav-wrapper cyan darken-1">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2015-08-24 10:27:17 +00:00
|
|
|
<a class="waves-effect" href="{{ path('homepage') }}">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons">exit_to_app</i>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="right">
|
|
|
|
<li>
|
2016-03-09 07:59:08 +00:00
|
|
|
<a class="waves-effect" title="{{ 'entry.view.left_menu.set_as_read'|trans }}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
|
2016-06-23 20:51:09 +00:00
|
|
|
<i class="material-icons small">{% if entry.isArchived == 0 %}done{% else %}redo{% endif %}</i>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-08-18 09:58:35 +00:00
|
|
|
<a class="waves-effect" title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
|
2016-08-22 21:03:16 +00:00
|
|
|
<i class="material-icons small">{% if entry.isStarred == 0 %}star_outline{% else %}star{% endif %}</i>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" data-activates="slide-out" class="button-collapse right">
|
2016-06-23 20:51:09 +00:00
|
|
|
<i class="material-icons">menu</i>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2015-08-04 16:39:26 +00:00
|
|
|
<ul id="slide-out" class="collapsible side-nav fixed reader-mode" data-collapsible="accordion">
|
2015-08-06 01:22:45 +00:00
|
|
|
<li class="bold border-bottom hide-on-med-and-down">
|
2015-08-24 10:27:17 +00:00
|
|
|
<a class="waves-effect collapsible-header" href="{{ path('homepage') }}">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">exit_to_app</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.back_to_homepage'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-16 19:05:37 +00:00
|
|
|
<li class="bold border-bottom hide-on-med-and-down">
|
|
|
|
<a class="waves-effect collapsible-header" href="{{ entry.url|e }}">
|
2016-10-04 12:48:22 +00:00
|
|
|
<i class="material-icons small">link</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.view_original_article'|trans }}</span>
|
2015-08-16 19:05:37 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-12-30 08:41:17 +00:00
|
|
|
<li class="bold hide-on-med-and-down">
|
2016-03-09 07:59:08 +00:00
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" href="{{ path('reload_entry', { 'id': entry.id }) }}" id="reload">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">autorenew</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span>
|
2015-12-30 08:41:17 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2016-09-15 13:32:01 +00:00
|
|
|
{% set markAsReadLabel = 'entry.view.left_menu.set_as_unread' %}
|
|
|
|
{% if entry.isArchived == 0 %}
|
|
|
|
{% set markAsReadLabel = 'entry.view.left_menu.set_as_read' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-06 01:22:45 +00:00
|
|
|
<li class="bold hide-on-med-and-down">
|
2016-09-15 13:32:01 +00:00
|
|
|
<a class="waves-effect collapsible-header" title="{{ markAsReadLabel|trans }}" href="{{ path('archive_entry', { 'id': entry.id }) }}" id="markAsRead">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">{% if entry.isArchived == 0 %}done{% else %}redo{% endif %}</i>
|
2016-09-15 13:32:01 +00:00
|
|
|
<span>{{ markAsReadLabel|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-06 01:22:45 +00:00
|
|
|
<li class="bold hide-on-med-and-down">
|
2016-08-18 09:58:35 +00:00
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" href="{{ path('star_entry', { 'id': entry.id }) }}" id="setFav">
|
2016-08-22 21:03:16 +00:00
|
|
|
<i class="material-icons spall">{% if entry.isStarred == 0 %}star_outline{% else %}star{% endif %}</i>
|
2016-08-18 09:58:35 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.set_as_starred'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
2015-08-06 01:22:45 +00:00
|
|
|
<li class="bold border-bottom hide-on-med-and-down">
|
2016-03-09 07:59:08 +00:00
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.delete'|trans }}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">delete</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.delete'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-24 09:59:53 +00:00
|
|
|
<li class="bold border-bottom hide-on-med-and-down">
|
|
|
|
<a class="waves-effect collapsible-header" id="nav-btn-add-tag">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">label_outline</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.add_a_tag'|trans }}</span>
|
2015-08-24 09:59:53 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
<li class="bold">
|
|
|
|
<a class="waves-effect collapsible-header">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">share</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.share_content'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body">
|
|
|
|
<ul>
|
2016-04-10 19:48:11 +00:00
|
|
|
{% if craue_setting('share_public') %}
|
2016-04-10 15:33:15 +00:00
|
|
|
<li>
|
2016-10-04 12:58:06 +00:00
|
|
|
<a href="{{ path('share', {'id': entry.id }) }}" target="_blank" title="{{ 'entry.view.left_menu.public_link'|trans }}" class="tool icon-eye">
|
2016-04-27 19:31:12 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.public_link'|trans }}</span>
|
2016-04-10 15:33:15 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2016-08-23 14:49:12 +00:00
|
|
|
<li>
|
2016-10-04 12:58:06 +00:00
|
|
|
<a href="{{ path('delete_share', {'id': entry.id }) }}" title="{{ 'entry.view.left_menu.delete_public_link'|trans }}" class="tool icon-no-eye">
|
2016-08-23 14:49:12 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.delete_public_link'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-04-10 15:33:15 +00:00
|
|
|
{% endif %}
|
2016-02-12 15:58:30 +00:00
|
|
|
{% if craue_setting('share_twitter') %}
|
|
|
|
<li>
|
2016-10-04 12:58:06 +00:00
|
|
|
<a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool icon-twitter" title="twitter">
|
2016-02-12 15:58:30 +00:00
|
|
|
<span>twitter</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if craue_setting('share_shaarli') %}
|
|
|
|
<li>
|
2016-10-04 13:12:48 +00:00
|
|
|
<a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank">
|
|
|
|
<i class="tool icon-image icon-image--shaarli" title="shaarli"></i>
|
2016-10-04 12:48:22 +00:00
|
|
|
<span>shaarli</span>
|
2016-02-12 15:58:30 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if craue_setting('share_diaspora') %}
|
|
|
|
<li>
|
2016-10-04 13:12:48 +00:00
|
|
|
<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">
|
|
|
|
<i class="tool icon-image icon-image--diaspora" title="diaspora"></i>
|
2016-10-04 12:48:22 +00:00
|
|
|
<span>diaspora*</span>
|
2016-02-12 15:58:30 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if craue_setting('carrot') %}
|
|
|
|
<li>
|
2016-10-04 13:12:48 +00:00
|
|
|
<a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" title="carrot">
|
|
|
|
<i class="tool icon-image icon-image--carrot"></i>
|
2016-10-04 12:48:22 +00:00
|
|
|
<span>Carrot</span>
|
2016-02-12 15:58:30 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if craue_setting('share_mail') %}
|
|
|
|
<li>
|
2016-10-04 12:58:06 +00:00
|
|
|
<a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" title="{{ 'entry.view.left_menu.share_email_label'|trans }}" class="tool email icon icon-mail">
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.share_email_label'|trans }}</span>
|
2016-02-12 15:58:30 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2015-08-04 14:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
2016-04-09 19:34:50 +00:00
|
|
|
{% if craue_setting('show_printlink') %}
|
|
|
|
<li class="bold border-bottom hide-on-med-and-down">
|
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.print'|trans }}" href="javascript: window.print();">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">print</i>
|
2016-04-09 19:34:50 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.print'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
<li class="bold">
|
|
|
|
<a class="waves-effect collapsible-header">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">file_download</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.download'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body">
|
|
|
|
<ul>
|
2016-01-21 07:53:09 +00:00
|
|
|
{% if craue_setting('export_epub') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'epub' }) }}" title="Generate ePub file">EPUB</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_mobi') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'mobi' }) }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_pdf') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'pdf' }) }}" title="Generate PDF file">PDF</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_csv') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'csv' }) }}" title="Generate CSV file">CSV</a></li>{% endif %}
|
|
|
|
{% if craue_setting('export_json') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'json' }) }}" title="Generate JSON file">JSON</a></li>{% endif %}
|
2016-01-25 16:31:45 +00:00
|
|
|
{% if craue_setting('export_txt') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'txt' }) }}" title="Generate TXT file">TXT</a></li>{% endif %}
|
2016-01-21 07:53:09 +00:00
|
|
|
{% if craue_setting('export_xml') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'xml' }) }}" title="Generate XML file">XML</a></li>{% endif %}
|
2015-08-04 14:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-06 01:22:45 +00:00
|
|
|
<li class="bold hide-on-large-only">
|
2016-03-09 07:59:08 +00:00
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.delete'|trans }}" href="{{ path('delete_entry', { 'id': entry.id }) }}">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">delete</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.delete'|trans }}</span>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
<li class="bold">
|
2016-03-09 07:59:08 +00:00
|
|
|
<a class="waves-effect collapsible-header" href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.description'|trans }}">
|
2016-03-08 16:02:34 +00:00
|
|
|
<i class="material-icons small">error</i>
|
2016-03-09 07:59:08 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.problem.label'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div id="article">
|
|
|
|
<header class="mbm">
|
2016-03-09 07:59:08 +00:00
|
|
|
<h1>{{ entry.title|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1>
|
2015-08-04 14:18:15 +00:00
|
|
|
</header>
|
2015-08-24 09:59:53 +00:00
|
|
|
<aside>
|
2016-08-18 13:23:19 +00:00
|
|
|
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
|
2016-10-03 21:08:26 +00:00
|
|
|
<i class="material-icons">timer</i>
|
2016-08-26 12:26:47 +00:00
|
|
|
<span class="link">
|
2016-08-18 13:36:28 +00:00
|
|
|
{% if readingTime > 0 %}
|
|
|
|
{{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}
|
|
|
|
{% else %}
|
|
|
|
{{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
2016-10-03 21:08:26 +00:00
|
|
|
<i class="material-icons" title="{{ 'entry.view.created_at'|trans }}">today</i><span class="link">{{ entry.createdAt|date('Y-m-d') }}</span>
|
2016-03-08 16:02:34 +00:00
|
|
|
<a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool">
|
2016-10-05 12:06:55 +00:00
|
|
|
<i class="material-icons link">link</i> <span class="link">{{ entry.domainName|removeWww }}</span>
|
|
|
|
</a>
|
2016-10-09 01:37:21 +00:00
|
|
|
<span class="tool"><i class="material-icons link">comment</i></span> <span class="link">{{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span>
|
2015-08-24 09:59:53 +00:00
|
|
|
<div id="list">
|
2015-10-05 19:37:17 +00:00
|
|
|
{% for tag in entry.tags %}
|
|
|
|
<div class="chip">
|
2016-10-05 12:06:55 +00:00
|
|
|
<a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> <a href="{{ path('remove_tag', { 'entry': entry.id, 'tag': tag.id }) }}"><i class="material-icons">delete</i></a>
|
2015-10-05 19:37:17 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2015-08-24 09:59:53 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-field nav-panel-add-tag" style="display: none">
|
|
|
|
{{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }}
|
|
|
|
</div>
|
|
|
|
|
2016-04-07 11:47:35 +00:00
|
|
|
{% if entry.previewPicture is not null %}
|
|
|
|
<div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
</aside>
|
|
|
|
<article>
|
|
|
|
{{ entry.content | raw }}
|
|
|
|
</article>
|
|
|
|
</div>
|
2016-02-24 00:13:30 +00:00
|
|
|
|
2016-03-08 16:02:34 +00:00
|
|
|
<script id="annotationroutes" type="application/json">
|
|
|
|
{
|
|
|
|
"prefix": "",
|
|
|
|
"urls": {
|
|
|
|
"create": "{{ path('annotations_post_annotation', { 'entry': entry.id }) }}",
|
|
|
|
"update": "{{ path('annotations_put_annotation', { 'annotation': 'idAnnotation' }) }}",
|
|
|
|
"destroy": "{{ path('annotations_delete_annotation', { 'annotation': 'idAnnotation' }) }}",
|
|
|
|
"search": "{{ path('annotations_get_annotations', { 'entry': entry.id }) }}"
|
|
|
|
},
|
|
|
|
"entryId": "{{ entry.id }}"
|
|
|
|
}</script>
|
2016-02-24 00:13:30 +00:00
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footer %}
|
2015-08-12 19:16:00 +00:00
|
|
|
{% endblock %}
|