From 5ea5310ab450035143e2f5637f9fa69773f7879b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 14 Dec 2014 15:17:39 +0100 Subject: enable showing or not for epub/mobi/pdf export buttons --- themes/baggy/home.twig | 18 +++++++++--------- themes/baggy/view.twig | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'themes/baggy') diff --git a/themes/baggy/home.twig b/themes/baggy/home.twig index 426ead1d..abebe455 100755 --- a/themes/baggy/home.twig +++ b/themes/baggy/home.twig @@ -61,17 +61,17 @@ {% if searchterm is defined %}{% trans "Tag these results as" %} {{ searchterm }}{% endif %}
{% if tag %} - {% trans "Download as ePub3" %} - {% trans "Download as Mobi" %} - {% trans "Download as PDF" %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} {% elseif searchterm is defined %} - {% trans "Download as ePub3" %} - {% trans "Download as Mobi" %} - {% trans "Download as PDF" %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} {% else %} - {% trans "Download as ePub3" %} - {% trans "Download as Mobi" %} - {% trans "Download as PDF" %} + {% if constant('EPUB') == 1 %}{% trans "Download as ePub3" %}{% endif %} + {% if constant('MOBI') == 1 %}{% trans "Download as Mobi" %}{% endif %} + {% if constant('PDF') == 1 %}{% trans "Download as PDF" %}{% endif %} {% endif %} {% endif %} {% endblock %} diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index dd274327..1afd9df6 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig @@ -19,9 +19,9 @@ {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}
  • {% trans "flattr" %}
  • {% elseif flattr.status == constant('FLATTRED') %}
  • {% trans "flattr" %} ({{ flattr.numFlattrs }})
  • {% endif %}{% endif %} {% if constant('CARROT') == 1 %}
  • Carrot
  • {% endif %} {% if constant('SHOW_PRINTLINK') == 1 %}
  • {% trans "Print" %}
  • {% endif %} -
  • EPUB
  • -
  • MOBI
  • -
  • PDF
  • + {% if constant('EPUB') == 1 %}
  • EPUB
  • {% endif %} + {% if constant('MOBI') == 1 %}
  • MOBI
  • {% endif %} + {% if constant('PDF') == 1 %}
  • PDF
  • {% endif %}
  • {% trans "Does this article appear wrong?" %}
  • -- cgit v1.2.3