aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/home.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/baggy/home.twig')
-rwxr-xr-xthemes/baggy/home.twig45
1 files changed, 39 insertions, 6 deletions
diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig
index 93d2815b..e1b78a26 100755
--- a/themes/baggy/home.twig
+++ b/themes/baggy/home.twig
@@ -15,8 +15,15 @@
15 {% if tag %} 15 {% if tag %}
16 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> 16 <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3>
17 {% endif %} 17 {% endif %}
18 {% if entries is empty %} 18 {% if entries is empty%}
19 <div class="messages warning"><p>{% trans "No articles found." %}</p></div> 19 <div class="messages warning"><p>
20 {% if view == 'home' %}{% trans "No articles unread. Good job !" %}
21 {% elseif view == 'fav' %}{% trans "No articles favourited" %}
22 {% elseif view == 'archive' %}{% trans "No articles marked as read" %}
23 {% elseif view == 'tags' %}{% trans "No articles with this tag found" %}
24 {% elseif searchterm is defined %} {% trans %}No articles found for « {{ searchterm }} »{% endtrans %}
25 {% else %}{% trans "No articles found" %}{% endif %}
26 </p></div>
20 {% else %} 27 {% else %}
21 <div> 28 <div>
22 {% include '_display-mode.twig' %} 29 {% include '_display-mode.twig' %}
@@ -25,15 +32,35 @@
25 {% block pager %} 32 {% block pager %}
26 {% if nb_results > 1 %} 33 {% if nb_results > 1 %}
27 <div class="results"> 34 <div class="results">
28 <div class="nb-results">{{ nb_results }} {% trans "results" %}{% if search_term is defined %} {% trans %}found for « {{ search_term }} »{% endtrans %}{% endif %} <a href="?action=random" class="icon icon-random"><span> {% trans "random" %}</span></a></div> 35 <div class="nb-results">
36 {% if view == 'home' %}
37 {{ nb_results }} {% trans "articles unread" %}
38 {% elseif view == 'fav' %}
39 {{ nb_results }} {% trans "articles favourited" %}
40 {% elseif view == 'archive' %}
41 {{ nb_results }} {% trans "articles marked as read" %}
42 {% elseif view == 'tag' %}
43 {{ nb_results }} {% trans "articles with this tag" %}
44 {% elseif searchterm is defined %}
45 {{ nb_results }} {% trans %}articles found for « {{ searchterm }} »{% endtrans %}
46 {% else %}
47 {{ nb_results }} {% trans "articles" %}
48 {% endif %}
49 {% if view == 'home' or view == 'fav' or view == 'archive' %}
50 <a href="?action=random&amp;view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
51 </div>
29 {{ page_links | raw }} 52 {{ page_links | raw }}
30 </div> 53 </div>
31 {% elseif nb_results == 1 %} 54 {% elseif nb_results == 1 %}
32 {% if search_term is defined %}
33 <div class="results"> 55 <div class="results">
34 <div class="nb-results">{% trans "Only one result found for " %} « {{ search_term }} »</div> 56 <div class="nb-results">
57 {% if view == 'home' %}{% trans "Only one article unread. Way to go !" %}
58 {% elseif view == 'fav' %}{% trans "Just one article favourited" %}
59 {% elseif view == 'archive' %}{% trans "One article marked as read" %}
60 {% elseif view == 'tag' %}{% trans "One article with this tag" %}
61 {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %}
62 {% else %}{% trans "One article found" %}{% endif %}</div>
35 </div> 63 </div>
36 {% endif %}
37 {% endif %} 64 {% endif %}
38 {% endblock %} 65 {% endblock %}
39 <div id="list-entries" class="list-entries"> 66 <div id="list-entries" class="list-entries">
@@ -68,14 +95,20 @@
68 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this tag in an epub file" %}" href="./?epub&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as ePub3" %}</a>{% endif %} 95 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this tag in an epub file" %}" href="./?epub&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as ePub3" %}</a>{% endif %}
69 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this tag in a mobi file" %}" href="./?mobi&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as Mobi" %}</a>{% endif %} 96 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this tag in a mobi file" %}" href="./?mobi&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as Mobi" %}</a>{% endif %}
70 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this tag in a pdf file" %}" href="./?pdf&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as PDF" %}</a>{% endif %} 97 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this tag in a pdf file" %}" href="./?pdf&amp;method=tag&amp;value={{ tag.value }}">{% trans "Download as PDF" %}</a>{% endif %}
98
71 {% elseif searchterm is defined %} 99 {% elseif searchterm is defined %}
72 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as ePub3" %}</a>{% endif %} 100 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as ePub3" %}</a>{% endif %}
73 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as Mobi" %}</a>{% endif %} 101 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as Mobi" %}</a>{% endif %}
74 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as PDF" %}</a>{% endif %} 102 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&amp;method=search&amp;value={{ searchterm }}">{% trans "Download as PDF" %}</a>{% endif %}
103
75 {% else %} 104 {% else %}
76 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&amp;method=category&amp;value={{ view }}">{% trans "Download as ePub3" %}</a>{% endif %} 105 {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&amp;method=category&amp;value={{ view }}">{% trans "Download as ePub3" %}</a>{% endif %}
77 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&amp;method=category&amp;value={{ view }}">{% trans "Download as Mobi" %}</a>{% endif %} 106 {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&amp;method=category&amp;value={{ view }}">{% trans "Download as Mobi" %}</a>{% endif %}
78 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&amp;method=category&amp;value={{ view }}">{% trans "Download as PDF" %}</a>{% endif %} 107 {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&amp;method=category&amp;value={{ view }}">{% trans "Download as PDF" %}</a>{% endif %}
79 {% endif %} 108 {% endif %}
80{% endif %} 109{% endif %}
110
111<script type="text/javascript">
112 homeNavigation();
113</script>
81{% endblock %} 114{% endblock %}