mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-18 05:32:23 -05:00
[add] view article template
This commit is contained in:
parent
d85620383d
commit
973a2dfb52
15
app/views/view.twig
Normal file
15
app/views/view.twig
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user