diff options
author | Thomas Citharel <tcit@tcit.fr> | 2014-12-22 14:33:01 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2014-12-22 14:33:01 +0100 |
commit | f3917b1ee4bba812e82da57dd181f50d62926db4 (patch) | |
tree | cb4b04931e97e4a69500bf9d7aa5c21985cab59e /themes/default | |
parent | 311baf86befde0557faea614ca4d13bb2bd2cc66 (diff) | |
parent | 9254b6cf460edec3a59e9ccc19873481a1d19c90 (diff) | |
download | wallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.tar.gz wallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.tar.zst wallabag-f3917b1ee4bba812e82da57dd181f50d62926db4.zip |
Merge branch 'dev' into randomarticle
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/config.twig | 13 | ||||
-rwxr-xr-x | themes/default/home.twig | 23 | ||||
-rwxr-xr-x | themes/default/view.twig | 4 |
3 files changed, 28 insertions, 12 deletions
diff --git a/themes/default/config.twig b/themes/default/config.twig index 082e179f..bac563cf 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -106,8 +106,15 @@ | |||
106 | <span class="more-info">Data will be exported in a single JSON file.</span></p> | 106 | <span class="more-info">Data will be exported in a single JSON file.</span></p> |
107 | 107 | ||
108 | <h2>{% trans "Fancy an E-Book ?" %}</h2> | 108 | <h2>{% trans "Fancy an E-Book ?" %}</h2> |
109 | <p><a href="./?epub&method=all" title="Generate ePub">Download E-Book</a><br> | 109 | <p>{% trans "Click to get all your articles in one ebook :" %} |
110 | <span class="more-info">{% trans "Articles will be exported as a single E-book file (EPUB 3 format)." %} {% trans "This can <b>take a while</b> and can <b>even fail</b> if you have too many articles, depending on your server configuration." %}</span></p> | 110 | <ul> |
111 | <li><a href="./?epub&method=all" title="Generate ePub file">ePub 3</a></li> | ||
112 | <li><a href="./?mobi&method=all" title="Generate Mobi file">Mobi</a></li> | ||
113 | <li><a href="./?pdf&method=all" title="Generate PDF file">PDF</a></li> | ||
114 | </ul> | ||
115 | </p> | ||
116 | |||
117 | <span class="more-info">{% trans "This can <b>take a while</b> and can <b>even fail</b> if you have too many articles, depending on your server configuration." %}</span></p> | ||
111 | 118 | ||
112 | <h2><a name="cache"></a>{% trans "Cache" %}</h2> | 119 | <h2><a name="cache"></a>{% trans "Cache" %}</h2> |
113 | <p><a href="?empty-cache">{% trans "Delete Cache" %}</a><br> | 120 | <p><a href="?empty-cache">{% trans "Delete Cache" %}</a><br> |
@@ -133,7 +140,7 @@ | |||
133 | <input type="hidden" name="token" value="{{ token }}"> | 140 | <input type="hidden" name="token" value="{{ token }}"> |
134 | </form> | 141 | </form> |
135 | {% endif %} | 142 | {% endif %} |
136 | 143 | ||
137 | <h2>{% trans 'Add user' %}</h2> | 144 | <h2>{% trans 'Add user' %}</h2> |
138 | <form method="post" action="?newuser"> | 145 | <form method="post" action="?newuser"> |
139 | <fieldset class="w500p"> | 146 | <fieldset class="w500p"> |
diff --git a/themes/default/home.twig b/themes/default/home.twig index aa332600..0c0f3283 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -58,15 +58,22 @@ | |||
58 | {% endfor %} | 58 | {% endfor %} |
59 | 59 | ||
60 | {{ block('pager') }} | 60 | {{ block('pager') }} |
61 | {% if view == 'home' %}{% if nb_results > 1 %}<p><a title="{% trans "Mark all the entries as read" %}" href="./?action=archive_all">{% trans "Mark all the entries as read" %}</a></p>{% endif %}{% endif %} | ||
62 | {% if searchterm is defined %}<a title="{% trans "Tag these results as" %} {{ searchterm }}" href="./?action=add_tag&search={{ searchterm }}">{% trans "Tag these results as" %} {{ searchterm }}</a>{% endif %}<br /> | ||
61 | 63 | ||
62 | {% if view == 'home' %}{% if nb_results > 1 %}<a title="{% trans "mark all the entries as read" %}" href="./?action=archive_all">{% trans "mark all the entries as read" %}</a>{% endif %}{% endif %} | 64 | {% if tag %} |
63 | 65 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this tag in an epub file" %}" href="./?epub&method=tag&value={{ tag.value }}">{% trans "Download as ePub3" %}</a>{% endif %} | |
64 | {% if searchterm is defined %}<a title="{% trans "Tag these results as" %} {{ searchterm }}" href="./?action=add_tag&search={{ searchterm }}"> | 66 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this tag in a mobi file" %}" href="./?mobi&method=tag&value={{ tag.value }}">{% trans "Download as Mobi" %}</a>{% endif %} |
65 | {% trans "Tag these results as" %} {{ searchterm }}</a>{% endif %} | 67 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this tag in a pdf file" %}" href="./?pdf&method=tag&value={{ tag.value }}">{% trans "Download as PDF" %}</a>{% endif %} |
66 | 68 | {% elseif searchterm is defined %} | |
67 | {% if tag %}<a title="{% trans "Download the articles from this tag in an epub" %}" href="./?epub&method=tag&value={{ tag.value }}">{% trans "Download the articles from this tag in an epub" %}</a> | 69 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&value={{ searchterm }}">{% trans "Download as ePub3" %}</a>{% endif %} |
68 | {% elseif searchterm is defined %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&value={{ searchterm }}">{% trans "Download the articles from this search in an epub" %}</a> | 70 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&method=search&value={{ searchterm }}">{% trans "Download as Mobi" %}</a>{% endif %} |
69 | {% else %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&value={{ view }}">{% trans "Download the articles from this category in an epub" %}</a>{% endif %} | 71 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&method=search&value={{ searchterm }}">{% trans "Download as PDF" %}</a>{% endif %} |
72 | {% else %} | ||
73 | {% if constant('EPUB') == 1 %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&value={{ view }}">{% trans "Download as ePub3" %}</a>{% endif %} | ||
74 | {% if constant('MOBI') == 1 %}<a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&method=category&value={{ view }}">{% trans "Download as Mobi" %}</a>{% endif %} | ||
75 | {% if constant('PDF') == 1 %}<a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&method=category&value={{ view }}">{% trans "Download as PDF" %}</a>{% endif %} | ||
76 | {% endif %} | ||
70 | 77 | ||
71 | {% endif %} | 78 | {% endif %} |
72 | {% endblock %} | 79 | {% endblock %} |
diff --git a/themes/default/view.twig b/themes/default/view.twig index 181e1284..8f3a26c3 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig | |||
@@ -18,7 +18,9 @@ | |||
18 | {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span>{{ flattr.numFlattrs }}</a></li>{% endif %}{% endif %} | 18 | {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li><a href="http://flattr.com/submit/auto?url={{ entry.url }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span></a></li>{% elseif flattr.status == constant('FLATTRED') %}<li><a href="{{ flattr.flattrItemURL }}" class="tool flattr" target="_blank" title="{% trans "flattr" %}"><span>{% trans "flattr" %}</span>{{ flattr.numFlattrs }}</a></li>{% endif %}{% endif %} |
19 | {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %} | 19 | {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %} |
20 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} | 20 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} |
21 | <li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li> | 21 | {% if constant('EPUB') == 1 %}<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %} |
22 | {% if constant('MOBI') == 1 %}<li><a href="./?mobi&method=id&value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | ||
23 | {% if constant('PDF') == 1 %}<li><a href="./?pdf&method=id&value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %} | ||
22 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display"><span>{% trans "Does this article appear wrong?" %}</span></a></li> | 24 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display"><span>{% trans "Does this article appear wrong?" %}</span></a></li> |
23 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} | 25 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} |
24 | </ul> | 26 | </ul> |