mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-24 01:52:15 -05:00
22 lines
1.0 KiB
Twig
22 lines
1.0 KiB
Twig
{% extends layout %}
|
|
{% block title %}{{ entry.title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if entry is empty %}
|
|
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
|
|
{% else %}
|
|
<h2>{{ entry.title }}</h2>
|
|
<ul class="tools">
|
|
<li>{% if entry.status == "read" %}<a href="{{ path('mark_entry_unread', {'id': entry.id}) }}">{{ 'mark as unread'|trans }}</a>{% else %}<a href="{{ path('mark_entry_read', {'id': entry.id}) }}">{{ 'mark as read'|trans }}</a>{% endif %}</li>
|
|
<li>{% if entry.bookmark == 1 %}<a href="{{ path('unstar_entry', {'id': entry.id}) }}">{{ 'unstar'|trans }}</a>{% else %}<a href="{{ path('star_entry', {'id': entry.id}) }}">{{ 'star'|trans }}</a>{% endif %}</li>
|
|
<li><a href="{{ path('remove_entry', {'id': entry.id}) }}">{{ 'delete'|trans }}</a></li>
|
|
<li><a href="{{ entry.url }}" class="external" title="{{ 'view original'|trans }}">{{ entry.url | getDomain }}</a></li>
|
|
</ul>
|
|
|
|
<article>{{ entry.content|raw }}</article>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|