aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/home.twig8
1 files changed, 6 insertions, 2 deletions
diff --git a/tpl/home.twig b/tpl/home.twig
index 6b80c6ed..f51c34f2 100644
--- a/tpl/home.twig
+++ b/tpl/home.twig
@@ -19,7 +19,10 @@
19{% endblock %} 19{% endblock %}
20{% block content %} 20{% block content %}
21 {{ page_links | raw }} 21 {{ page_links | raw }}
22 {% for entry in entries %} 22 {% if entries is empty %}
23 <div class="messages warning"><p>{% trans "No link available here!" %}</p></div>
24 {% else %}
25 {% for entry in entries %}
23 <div id="entry-{{ entry.id|e }}" class="entrie"> 26 <div id="entry-{{ entry.id|e }}" class="entrie">
24 <h2><a href="index.php?view=view&amp;id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2> 27 <h2><a href="index.php?view=view&amp;id={{ entry.id|e }}">{{ entry.title|raw }}</a></h2>
25 <ul class="tools"> 28 <ul class="tools">
@@ -31,6 +34,7 @@
31 <p>{{ entry.content|striptags|slice(0, 300) }}...</p> 34 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>
32 <p class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></p> 35 <p class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></p>
33 </div> 36 </div>
34 {% endfor %} 37 {% endfor %}
38 {% endif %}
35 {{ page_links | raw }} 39 {{ page_links | raw }}
36{% endblock %} \ No newline at end of file 40{% endblock %} \ No newline at end of file