diff options
author | tcit <tcit@tcit.fr> | 2014-05-16 16:31:18 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-05-16 16:31:18 +0200 |
commit | 404adf970d985da0f624c42a5aa5e9c63694b08d (patch) | |
tree | ab298f6d6687dcef7494d7bd938dcdaac80a48fc /themes/default | |
parent | 74e09e562ba46c52da364539aa4fc0414114ca87 (diff) | |
parent | f3f0b11393dd7f11bc1e63df9488c3930c0bc06f (diff) | |
download | wallabag-404adf970d985da0f624c42a5aa5e9c63694b08d.tar.gz wallabag-404adf970d985da0f624c42a5aa5e9c63694b08d.tar.zst wallabag-404adf970d985da0f624c42a5aa5e9c63694b08d.zip |
Merge branch 'epub' into dev
Conflicts:
themes/baggy/home.twig
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/config.twig | 4 | ||||
-rwxr-xr-x | themes/default/home.twig | 9 | ||||
-rwxr-xr-x | themes/default/view.twig | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/themes/default/config.twig b/themes/default/config.twig index 5ed9d80f..160f6046 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -127,6 +127,10 @@ | |||
127 | <h2>{% trans "Cache" %}</h2> | 127 | <h2>{% trans "Cache" %}</h2> |
128 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> | 128 | <p><a href="?empty-cache">{% trans "Click here" %}</a> {% trans "to delete cache." %}</p> |
129 | 129 | ||
130 | <h2>{% trans "Fancy an E-Book ?" %}</h2> | ||
131 | <p>{% trans "Click on <a href=\"./?epub&method=all\" title=\"Generate ePub\">this link</a> to get all your articles in one ebook (ePub 3 format)." %} | ||
132 | <br>{% 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." %}</p> | ||
133 | |||
130 | <h2>{% trans 'Add user' %}</h2> | 134 | <h2>{% trans 'Add user' %}</h2> |
131 | <p>{% trans 'Add a new user :' %}</p> | 135 | <p>{% trans 'Add a new user :' %}</p> |
132 | <form method="post" action="?newuser"> | 136 | <form method="post" action="?newuser"> |
diff --git a/themes/default/home.twig b/themes/default/home.twig index d6cb98e8..e6c781f5 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -55,7 +55,14 @@ | |||
55 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | 55 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> |
56 | </div> | 56 | </div> |
57 | {% endfor %} | 57 | {% endfor %} |
58 | {% endif %} | 58 | |
59 | {{ block('pager') }} | 59 | {{ block('pager') }} |
60 | |||
60 | {% 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 %} | 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 %} |
62 | |||
63 | {% if tag %}<a title="{% trans "Download the articles from this tag in an epub" %}" href="./?epub&method=tag&tag={{ tag.value }}">{% trans "Download the articles from this tag in an epub" %}</a> | ||
64 | {% elseif search_term is defined %}<a title="{% trans "Download the articles from this search in an epub" %}" href="./?epub&method=search&search={{ search_term }}">{% trans "Download the articles from this search in an epub" %}</a> | ||
65 | {% else %}<a title="{% trans "Download the articles from this category in an epub" %}" href="./?epub&method=category&category={{ view }}">{% trans "Download the articles from this category in an epub" %}</a>{% endif %} | ||
66 | |||
67 | {% endif %} | ||
61 | {% endblock %} | 68 | {% endblock %} |
diff --git a/themes/default/view.twig b/themes/default/view.twig index 983cc1cd..b7d48c00 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig | |||
@@ -15,6 +15,7 @@ | |||
15 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} | 15 | {% if constant('SHARE_SHAARLI') == 1 %}<li><a href="{{ constant('SHAARLI_URL') }}/index.php?post={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" target="_blank" class="tool shaarli" title="{% trans "shaarli" %}"><span>{% trans "shaarli" %}</span></a></li>{% endif %} |
16 | {% 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 %} | 16 | {% 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 %} |
17 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} | 17 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} |
18 | <li><a href="./?epub&method=id&id={{ entry.id|e }}" title="Generate epub file">EPUB</a></li> | ||
18 | <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> | 19 | <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> |
19 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} | 20 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} |
20 | </ul> | 21 | </ul> |