diff options
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/css/style.css | 2 | ||||
-rwxr-xr-x | themes/default/home.twig | 39 |
2 files changed, 33 insertions, 8 deletions
diff --git a/themes/default/css/style.css b/themes/default/css/style.css index 58d908ee..9a681748 100755 --- a/themes/default/css/style.css +++ b/themes/default/css/style.css | |||
@@ -151,7 +151,7 @@ a:visited { | |||
151 | text-indent: -9999px; | 151 | text-indent: -9999px; |
152 | } | 152 | } |
153 | 153 | ||
154 | .random { | 154 | .icon-random { |
155 | display: inline-block; | 155 | display: inline-block; |
156 | width: 16px; | 156 | width: 16px; |
157 | height: 16px; | 157 | height: 16px; |
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&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 %} |