1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 13:45:04 -05:00

[add] view article template

This commit is contained in:
Nicolas Lœuillet 2014-01-08 10:57:21 +01:00
parent d85620383d
commit 973a2dfb52

15
app/views/view.twig Normal file
View File

@ -0,0 +1,15 @@
{% extends layout %}
{% block content %}
{% if entry is empty %}
<div class="messages warning"><p>{{ 'No link available here!'|trans }}</p></div>
{% else %}
<h1>{{ entry.title }}</h1>
<div><a href="{{ entry.url }}">{{ 'view original'|trans }}</a></div>
<article>{{ entry.content|striptags }}</article>
{% endif %}
{% endblock %}