2024-02-18 23:03:14 +00:00
|
|
|
{% extends "layout.html.twig" %}
|
2015-08-04 14:18:15 +00:00
|
|
|
|
2018-02-09 18:28:02 +00:00
|
|
|
{% block title %}{{ entry.title|striptags|default('entry.default_title'|trans)|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 %}
|
|
|
|
|
2023-12-25 20:42:08 +00:00
|
|
|
{% set current_path = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
|
|
|
|
|
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>
|
2020-01-19 11:50:08 +00:00
|
|
|
<nav class="hide-on-large-only js-entry-nav-top">
|
2017-12-28 21:54:42 +00:00
|
|
|
<div class="nav-panel-item cyan darken-1">
|
2015-08-06 01:22:45 +00:00
|
|
|
<ul>
|
2017-05-02 13:40:15 +00:00
|
|
|
<li>
|
|
|
|
<a href="#" data-activates="slide-out" class="button-collapse">
|
|
|
|
<i class="material-icons">menu</i>
|
|
|
|
</a>
|
|
|
|
</li>
|
2015-08-06 01:22:45 +00:00
|
|
|
<li>
|
2015-08-24 10:27:17 +00:00
|
|
|
<a class="waves-effect" href="{{ path('homepage') }}">
|
2017-12-16 18:59:27 +00:00
|
|
|
<i class="material-icons">arrow_back</i>
|
2015-08-06 01:22:45 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="right">
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('ARCHIVE', entry) %}
|
|
|
|
<li>
|
|
|
|
<a class="waves-effect" title="{{ 'entry.view.left_menu.set_as_read'|trans }}" href="{{ path('archive_entry', {'id': entry.id, redirect: current_path}) }}" id="markAsRead">
|
|
|
|
<i class="material-icons small">{% if entry.isArchived == 0 %}done{% else %}unarchive{% endif %}</i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('STAR', entry) %}
|
|
|
|
<li>
|
|
|
|
<a class="waves-effect" title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" href="{{ path('star_entry', {'id': entry.id, redirect: current_path}) }}" id="setFav">
|
|
|
|
<i class="material-icons small">{% if entry.isStarred == 0 %}star_outline{% else %}star{% endif %}</i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2015-08-06 01:22:45 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2023-06-06 20:53:56 +00:00
|
|
|
<ul id="slide-out" class="left-bar 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') }}">
|
2017-12-16 18:59:27 +00:00
|
|
|
<i class="material-icons small">arrow_back</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">
|
2018-11-07 03:53:48 +00:00
|
|
|
<a class="waves-effect collapsible-header original" href="{{ entry.url|e }}" target="_blank" rel="noopener">
|
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>
|
|
|
|
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('RELOAD', entry) %}
|
|
|
|
<li class="bold">
|
|
|
|
<a class="waves-effect collapsible-header" onclick="return confirm('{{ 'entry.confirm.reload'|trans|escape('js') }}')" title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" href="{{ path('reload_entry', {'id': entry.id}) }}" id="reload">
|
|
|
|
<i class="material-icons small">refresh</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2015-12-30 08:41:17 +00:00
|
|
|
|
2022-05-03 21:28:20 +00:00
|
|
|
{% set mark_as_read_label = 'entry.view.left_menu.set_as_unread' %}
|
2016-09-15 13:32:01 +00:00
|
|
|
{% if entry.isArchived == 0 %}
|
2022-05-03 21:28:20 +00:00
|
|
|
{% set mark_as_read_label = 'entry.view.left_menu.set_as_read' %}
|
2016-09-15 13:32:01 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('ARCHIVE', entry) %}
|
|
|
|
<li class="bold hide-on-med-and-down">
|
|
|
|
<a class="waves-effect collapsible-header markasread" title="{{ mark_as_read_label|trans }}" href="{{ path('archive_entry', {'id': entry.id, redirect: current_path}) }}" id="markAsRead">
|
|
|
|
<i class="material-icons small">{% if entry.isArchived == 0 %}done{% else %}unarchive{% endif %}</i>
|
|
|
|
<span>{{ mark_as_read_label|trans }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2015-08-04 14:18:15 +00:00
|
|
|
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('STAR', entry) %}
|
|
|
|
<li class="bold hide-on-med-and-down">
|
|
|
|
<a class="waves-effect collapsible-header favorite" title="{{ 'entry.view.left_menu.set_as_starred'|trans }}" href="{{ path('star_entry', {'id': entry.id, redirect: current_path}) }}" id="setFav">
|
2024-03-23 15:07:43 +00:00
|
|
|
<i class="material-icons small">{% if entry.isStarred == 0 %}star_outline{% else %}star{% endif %}</i>
|
2024-03-23 14:34:02 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.set_as_starred'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if is_granted('DELETE', entry) %}
|
|
|
|
<li class="bold border-bottom">
|
|
|
|
<a class="waves-effect collapsible-header delete" onclick="return confirm('{{ 'entry.confirm.delete'|trans|escape('js') }}')" title="{{ 'entry.view.left_menu.delete'|trans }}" href="{{ path('delete_entry', {'id': entry.id, redirect: current_path}) }}">
|
|
|
|
<i class="material-icons small">delete</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.delete'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
<div class="collapsible-body"></div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2015-08-04 14:18:15 +00:00
|
|
|
|
2016-11-07 08:05:04 +00:00
|
|
|
<li class="bold border-bottom">
|
2015-08-24 09:59:53 +00:00
|
|
|
<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>
|
|
|
|
|
2020-11-08 14:04:29 +00:00
|
|
|
<li class="bold">
|
2020-11-19 10:38:02 +00:00
|
|
|
<a class="waves-effect collapsible-header">
|
2020-11-08 14:04:29 +00:00
|
|
|
<i class="material-icons small">brightness_medium</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.theme_toggle'|trans }}</span>
|
|
|
|
</a>
|
2020-11-19 10:38:02 +00:00
|
|
|
<ul class="collapsible-body">
|
|
|
|
<li>
|
|
|
|
<a href="#" class="js-theme-toggle" data-theme="light">
|
|
|
|
<i class="theme-toggle-icon material-icons tiny">brightness_high</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.theme_toggle_light'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="js-theme-toggle" data-theme="dark">
|
|
|
|
<i class="theme-toggle-icon material-icons tiny">brightness_low</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.theme_toggle_dark'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="js-theme-toggle" data-theme="auto">
|
|
|
|
<i class="theme-toggle-icon material-icons tiny">brightness_auto</i>
|
|
|
|
<span>{{ 'entry.view.left_menu.theme_toggle_auto'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2020-11-08 14:04:29 +00:00
|
|
|
</li>
|
2024-05-21 13:46:45 +00:00
|
|
|
{% if craue_setting('share_public') or craue_setting('share_twitter') or craue_setting('share_shaarli') or craue_setting('share_diaspora') or craue_setting('share_unmark') or craue_setting('share_linkding') or craue_setting('share_mail') %}
|
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') %}
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('SHARE', entry) %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('share', {'id': entry.id}) }}" target="_blank" title="{{ 'entry.view.left_menu.public_link'|trans }}" class="tool icon-eye">
|
|
|
|
<span>{{ 'entry.view.left_menu.public_link'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('UNSHARE', entry) %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('delete_share', {'id': entry.id}) }}" title="{{ 'entry.view.left_menu.delete_public_link'|trans }}" class="tool icon-no-eye">
|
|
|
|
<span>{{ 'entry.view.left_menu.delete_public_link'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2016-04-10 15:33:15 +00:00
|
|
|
{% endif %}
|
2016-02-12 15:58:30 +00:00
|
|
|
{% if craue_setting('share_twitter') %}
|
|
|
|
<li>
|
2022-05-03 21:28:20 +00:00
|
|
|
<a href="https://twitter.com/share?text={{ entry.title|striptags|url_encode }}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" rel="noopener" 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>
|
2018-11-07 03:53:48 +00:00
|
|
|
<a href="{{ craue_setting('shaarli_url') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|striptags|url_encode }}&tags={{ entry.tags|join(',')|striptags|url_encode }}{% if craue_setting('shaarli_share_origin_url') %}&original_url={{ entry.originUrl|url_encode }}{% endif %}" target="_blank" rel="noopener" title="shaarli" class="tool icon-image shaarli">
|
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>
|
2018-11-07 03:53:48 +00:00
|
|
|
<a href="{{ craue_setting('diaspora_url') }}/bookmarklet?url={{ entry.url|url_encode }}&title={{ entry.title|striptags|url_encode }}&notes=&v=1&noui=1&jump=doclose" target="_blank" rel="noopener" class="tool icon-image diaspora" title="diaspora">
|
2016-10-04 12:48:22 +00:00
|
|
|
<span>diaspora*</span>
|
2016-02-12 15:58:30 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2016-11-09 14:44:28 +00:00
|
|
|
{% if craue_setting('share_unmark') %}
|
|
|
|
<li>
|
2022-05-03 21:28:20 +00:00
|
|
|
<a href="{{ craue_setting('unmark_url') }}/mark/add?url={{ entry.url|url_encode }}&title={{ entry.title|striptags|url_encode }}&v=6" target="_blank" rel="noopener" class="tool icon-image unmark" title="unmark">
|
2016-11-09 14:44:28 +00:00
|
|
|
<span>unmark.it</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2024-05-21 13:46:45 +00:00
|
|
|
{% if craue_setting('share_linkding') %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ craue_setting('linkding_url') }}/bookmarks/new?url={{ entry.url|url_encode }}" target="_blank" rel="noopener" class="tool icon-image linkding" title="linkding">
|
|
|
|
<span>linkding</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2016-02-12 15:58:30 +00:00
|
|
|
{% if craue_setting('share_mail') %}
|
|
|
|
<li>
|
2017-03-31 18:21:41 +00:00
|
|
|
<a href="mailto:?subject={{ entry.title|striptags|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" title="{{ 'entry.view.left_menu.share_email_label'|trans }}" class="tool icon">
|
|
|
|
<i class="material-icons vertical-align-middle">mail</i>
|
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>
|
2017-12-12 17:25:55 +00:00
|
|
|
{% endif %}
|
2015-08-04 14:18:15 +00:00
|
|
|
|
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 %}
|
|
|
|
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('LIST_ENTRIES') %}
|
|
|
|
<li class="bold border-top border-bottom">
|
|
|
|
<a class="waves-effect collapsible-header" title="{{ 'menu.top.random_entry'|trans }}" href="{{ path('random_entry', {'type': 'all'}) }}">
|
|
|
|
<i class="material-icons small">casino</i>
|
|
|
|
<span>{{ 'menu.top.random_entry'|trans }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2021-08-03 13:00:10 +00:00
|
|
|
|
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>
|
2017-05-18 15:17:21 +00:00
|
|
|
<span>{{ 'entry.view.left_menu.export'|trans }}</span>
|
2015-08-04 14:18:15 +00:00
|
|
|
</a>
|
|
|
|
<div class="collapsible-body">
|
|
|
|
<ul>
|
2022-05-03 21:28:20 +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_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 %}
|
|
|
|
{% if craue_setting('export_txt') %}<li><a href="{{ path('export_entry', {'id': entry.id, 'format': 'txt'}) }}" title="Generate TXT file">TXT</a></li>{% endif %}
|
|
|
|
{% 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>
|
|
|
|
|
|
|
|
<li class="bold">
|
2019-01-18 10:14:28 +00:00
|
|
|
<a class="waves-effect collapsible-header" href="mailto:siteconfig@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 %}
|
2023-06-06 20:53:56 +00:00
|
|
|
<div id="article" class="article">
|
2015-08-04 14:18:15 +00:00
|
|
|
<header class="mbm">
|
2024-03-23 14:34:02 +00:00
|
|
|
<h1>
|
|
|
|
<span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span>
|
|
|
|
{% if is_granted('EDIT', entry) %}
|
|
|
|
<a class="title-edit" href="{{ path('edit', {'id': entry.id}) }}" title="{{ 'entry.view.edit_title'|trans }}"><i class="material-icons grey-text">create</i></a>
|
|
|
|
{% endif %}
|
|
|
|
</h1>
|
2015-08-04 14:18:15 +00:00
|
|
|
</header>
|
2023-06-06 20:53:56 +00:00
|
|
|
<aside class="entry-info">
|
|
|
|
<div class="tools entry-tools grey-text" dir="auto">
|
2017-05-07 15:13:08 +00:00
|
|
|
<ul class="stats">
|
2017-04-06 07:36:20 +00:00
|
|
|
<li>
|
2024-02-18 23:03:14 +00:00
|
|
|
{% include "Entry/_reading_time.html.twig" with {'entry': entry} only %}
|
2017-04-06 07:36:20 +00:00
|
|
|
</li>
|
2017-05-07 15:13:08 +00:00
|
|
|
<li>
|
2020-04-21 16:08:48 +00:00
|
|
|
<i class="material-icons grey-text" title="{{ 'entry.view.created_at'|trans }}">today</i>
|
2017-05-07 15:13:08 +00:00
|
|
|
{{ entry.createdAt|date('Y-m-d H:i') }}
|
|
|
|
</li>
|
|
|
|
{% if entry.publishedAt is not null %}
|
|
|
|
<li>
|
2020-04-21 16:08:48 +00:00
|
|
|
<i class="material-icons grey-text" title="{{ 'entry.view.published_at'|trans }}">create</i>
|
2017-05-07 15:13:08 +00:00
|
|
|
{{ entry.publishedAt|date('Y-m-d H:i') }}
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if entry.publishedBy is not empty %}
|
|
|
|
<li>
|
2020-04-21 16:08:48 +00:00
|
|
|
<i class="material-icons grey-text" title="{{ 'entry.view.published_by'|trans }}">person</i>
|
2017-05-07 15:13:08 +00:00
|
|
|
{% for author in entry.publishedBy %}
|
2018-06-04 10:04:37 +00:00
|
|
|
{{ author|raw }}{% if not loop.last %}, {% endif %}
|
2017-05-07 15:13:08 +00:00
|
|
|
{% endfor %}
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<li>
|
2020-04-21 16:08:48 +00:00
|
|
|
<i class="material-icons grey-text">link</i>
|
|
|
|
<a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|striptags }}" class="tool grey-text">
|
2017-05-07 15:13:08 +00:00
|
|
|
{{ entry.domainName|removeWww }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2023-06-14 20:26:56 +00:00
|
|
|
{% if entry.annotations|length %}
|
|
|
|
<li>
|
|
|
|
<i class="material-icons grey-text">comment</i>
|
2023-08-05 22:39:13 +00:00
|
|
|
{{ 'entry.view.annotations_on_the_entry'|trans({'%count%': entry.annotations|length}) }}
|
2023-06-14 20:26:56 +00:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-09-09 19:00:32 +00:00
|
|
|
{% if entry.originUrl is not empty %}
|
|
|
|
<li>
|
2020-04-21 16:08:48 +00:00
|
|
|
<i class="material-icons grey-text" title="{{ 'entry.view.provided_by'|trans }}">launch</i>
|
2023-06-06 20:53:56 +00:00
|
|
|
<a href="{{ entry.originUrl|e }}" target="_blank" rel="noopener" class="tool grey-text" data-tests="entry-origin-url">
|
2022-12-15 11:32:16 +00:00
|
|
|
{{ entry.originUrl|striptags|removeSchemeAndWww|u.truncate(32) }}
|
2017-09-09 19:00:32 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-05-07 15:13:08 +00:00
|
|
|
</ul>
|
2024-02-18 23:03:14 +00:00
|
|
|
{% include "Entry/_tags.html.twig" with {'tags': entry.tags, 'entryId': entry.id, 'withRemove': true} only %}
|
2017-05-07 15:13:08 +00:00
|
|
|
</div>
|
2015-08-24 09:59:53 +00:00
|
|
|
|
|
|
|
<div class="input-field nav-panel-add-tag" style="display: none">
|
2024-02-19 00:30:12 +00:00
|
|
|
{{ render(controller('Wallabag\\Controller\\TagController::addTagFormAction', {'id': entry.id})) }}
|
2015-08-24 09:59:53 +00:00
|
|
|
</div>
|
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
</aside>
|
2019-01-11 20:09:49 +00:00
|
|
|
<article{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>
|
2022-05-03 21:28:20 +00:00
|
|
|
{{ entry.content|raw }}
|
2015-08-04 14:18:15 +00:00
|
|
|
</article>
|
2016-11-30 15:08:02 +00:00
|
|
|
|
2020-01-19 16:49:54 +00:00
|
|
|
<div class="fixed-action-btn js-fixed-action-btn horizontal click-to-toggle hide-on-large-only">
|
2020-01-19 11:50:08 +00:00
|
|
|
<a class="btn-floating btn-large" data-toggle="actions">
|
2016-11-30 15:08:02 +00:00
|
|
|
<i class="material-icons">menu</i>
|
|
|
|
</a>
|
|
|
|
<ul>
|
2024-03-23 14:34:02 +00:00
|
|
|
{% if is_granted('ARCHIVE', entry) %}
|
|
|
|
<li><a class="btn-floating" href="{{ path('archive_entry', {'id': entry.id, redirect: current_path}) }}"><i class="material-icons">{% if entry.isArchived == 0 %}done{% else %}unarchive{% endif %}</i></a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('STAR', entry) %}
|
|
|
|
<li><a class="btn-floating" href="{{ path('star_entry', {'id': entry.id, redirect: current_path}) }}"><i class="material-icons">{% if entry.isStarred == 0 %}star_outline{% else %}star{% endif %}</i></a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_granted('DELETE', entry) %}
|
|
|
|
<li><a class="btn-floating" href="{{ path('delete_entry', {'id': entry.id, redirect: current_path}) }}" onclick="return confirm('{{ 'entry.confirm.delete'|trans|escape('js') }}')"><i class="material-icons">delete</i></a></li>
|
|
|
|
{% endif %}
|
2016-11-30 15:08:02 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-08-04 14:18:15 +00:00
|
|
|
</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": {
|
2022-05-03 21:28:20 +00:00
|
|
|
"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}) }}"
|
2016-03-08 16:02:34 +00:00
|
|
|
},
|
|
|
|
"entryId": "{{ entry.id }}"
|
|
|
|
}</script>
|
2016-02-24 00:13:30 +00:00
|
|
|
|
2015-08-04 14:18:15 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block footer %}
|
2023-07-29 10:26:44 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
{{ app.user.config.customCSS|raw }}
|
|
|
|
</style>
|
|
|
|
|
2015-08-12 19:16:00 +00:00
|
|
|
{% endblock %}
|