[add] view article template

This commit is contained in:
Nicolas Lœuillet 2014-01-08 10:57:21 +01:00
parent d85620383d
commit 973a2dfb52
1 changed files with 15 additions and 0 deletions

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 %}