diff options
author | Thomas Citharel <tcit@tcit.fr> | 2014-12-14 00:16:22 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2014-12-14 00:16:22 +0100 |
commit | dc69d3e8d895c87f9d26c2d1309e40d6090d4c8d (patch) | |
tree | 3cc3bd960df403a6e0645afcd9e4f5bbb68bfc0e /themes/default | |
parent | 9c55ed0923273da886497cb62302a79622e34a74 (diff) | |
parent | 9f86454b48dec3c9ecfee8da224112eef0f61441 (diff) | |
download | wallabag-dc69d3e8d895c87f9d26c2d1309e40d6090d4c8d.tar.gz wallabag-dc69d3e8d895c87f9d26c2d1309e40d6090d4c8d.tar.zst wallabag-dc69d3e8d895c87f9d26c2d1309e40d6090d4c8d.zip |
merge epub with all the dev evolutions
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/config.twig | 13 | ||||
-rwxr-xr-x | themes/default/home.twig | 23 |
2 files changed, 25 insertions, 11 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 6bc549e6..59615691 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -57,15 +57,22 @@ | |||
57 | {% endfor %} | 57 | {% endfor %} |
58 | 58 | ||
59 | {{ block('pager') }} | 59 | {{ block('pager') }} |
60 | {% 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 %} | ||
61 | {% 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 /> | ||
60 | 62 | ||
61 | {% 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 %} | 63 | {% if tag %} |
62 | 64 | <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> | |
63 | {% if searchterm is defined %}<a title="{% trans "Tag these results as" %} {{ searchterm }}" href="./?action=add_tag&search={{ searchterm }}"> | 65 | <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> |
64 | {% trans "Tag these results as" %} {{ searchterm }}</a>{% endif %} | 66 | <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> |
65 | 67 | {% elseif searchterm is defined %} | |
66 | {% 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> | 68 | <a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&value={{ searchterm }}">{% trans "Download as ePub3" %}</a> |
67 | {% 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> | 69 | <a title="{% trans "Download the articles from this search in a mobi file" %}" href="./?mobi&method=search&value={{ searchterm }}">{% trans "Download as Mobi" %}</a> |
68 | {% 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 %} | 70 | <a title="{% trans "Download the articles from this search in a pdf file" %}" href="./?pdf&method=search&value={{ searchterm }}">{% trans "Download as PDF" %}</a> |
71 | {% else %} | ||
72 | <a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&value={{ view }}">{% trans "Download as ePub3" %}</a> | ||
73 | <a title="{% trans "Download the articles from this category in a mobi file" %}" href="./?mobi&method=category&value={{ view }}">{% trans "Download as Mobi" %}</a> | ||
74 | <a title="{% trans "Download the articles from this category in a pdf file" %}" href="./?pdf&method=category&value={{ view }}">{% trans "Download as PDF" %}</a> | ||
75 | {% endif %} | ||
69 | 76 | ||
70 | {% endif %} | 77 | {% endif %} |
71 | {% endblock %} | 78 | {% endblock %} |