aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/home.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/home.twig')
-rwxr-xr-xthemes/default/home.twig39
1 files changed, 32 insertions, 7 deletions
diff --git a/themes/default/home.twig b/themes/default/home.twig
index 8fe56397..a320cc7f 100755
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -25,22 +25,47 @@
25 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> 25 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3>
26 {% endif %} 26 {% endif %}
27 27
28 {% if entries is empty %} 28 {% if entries is empty%}
29 <div class="messages warning"><p>{% trans "No articles found." %}</p></div> 29 {% if view == 'home' %}<div class="messages success"><p>{% trans "No articles unread. Good job !" %}
30 {% elseif view == 'fav' %}<div class="messages warning"><p>{% trans "No articles favourited" %}
31 {% elseif view == 'archive' %}<div class="messages warning"><p>{% trans "No articles marked as read" %}
32 {% elseif view == 'tags' %}<div class="messages warning"><p>{% trans "No articles with this tag found" %}
33 {% elseif searchterm is defined %}<div class="messages warning"><p>{% trans %}No articles found for « {{ searchterm }} »{% endtrans %}
34 {% else %}<div class="messages warning"><p>{% trans "No articles found" %}{% endif %}
35 </p></div>
30 {% else %} 36 {% else %}
31 {% block pager %} 37 {% block pager %}
32 {% if nb_results > 1 %} 38 {% if nb_results > 1 %}
33 <div class="results"> 39 <div class="results">
34 <div class="nb-results">{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %} 40 <div class="nb-results">
35 <a class="random" href="?action=random"><span>{% trans "random" %}</span></a></div> 41 {% if view == 'home' %}
42 {{ nb_results }} {% trans "articles unread" %}
43 {% elseif view == 'fav' %}
44 {{ nb_results }} {% trans "articles favourited" %}
45 {% elseif view == 'archive' %}
46 {{ nb_results }} {% trans "articles marked as read" %}
47 {% elseif view == 'tag' %}
48 {{ nb_results }} {% trans "articles with this tag" %}
49 {% elseif searchterm is defined %}{{ nb_results }}
50 {% trans %}articles found for « {{ searchterm }} »{% endtrans %}
51 {% else %}
52 {{ nb_results }} {% trans "articles" %}
53 {% endif %}
54 {% if view == 'home' or view == 'fav' or view == 'archive' %}
55 <a href="?action=random&amp;view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
56 </div>
36 {{ page_links | raw }} 57 {{ page_links | raw }}
37 </div> 58 </div>
38 {% elseif nb_results == 1 %} 59 {% elseif nb_results == 1 %}
39 {% if searchterm is defined %}
40 <div class="results"> 60 <div class="results">
41 <div class="nb-results">{% trans "Only one result found for " %} « {{ searchterm }} »</div> 61 <div class="nb-results">
62 {% if view == 'home' %}{% trans "Only one article unread. Way to go !" %}
63 {% elseif view == 'fav' %}{% trans "Just one article favourited" %}
64 {% elseif view == 'archive' %}{% trans "One article marked as read" %}
65 {% elseif view == 'tag' %}{% trans "One article with this tag" %}
66 {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %}
67 {% else %}{% trans "One article found" %}{% endif %}</div>
42 </div> 68 </div>
43 {% endif %}
44 {% endif %} 69 {% endif %}
45 {% endblock %} 70 {% endblock %}
46 {% for entry in entries %} 71 {% for entry in entries %}