aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-07-27 21:50:28 +0200
committerThomas Citharel <tcit@tcit.fr>2015-07-27 21:50:28 +0200
commit6056aaf0769e59944b2d77a3b294f5098a731c3e (patch)
tree072dd0829585d2a6e874fecf32add09366e4872d /themes
parent66eab89252fa04d5d9f11bf4abcc1c18ac17a1ca (diff)
downloadwallabag-6056aaf0769e59944b2d77a3b294f5098a731c3e.tar.gz
wallabag-6056aaf0769e59944b2d77a3b294f5098a731c3e.tar.zst
wallabag-6056aaf0769e59944b2d77a3b294f5098a731c3e.zip
fix #1237, display a message instead of button when connections are not through https
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/baggy/config.twig2
-rwxr-xr-xthemes/default/config.twig2
2 files changed, 2 insertions, 2 deletions
diff --git a/themes/baggy/config.twig b/themes/baggy/config.twig
index 2e40178e..6f55cd75 100755
--- a/themes/baggy/config.twig
+++ b/themes/baggy/config.twig
@@ -17,7 +17,7 @@
17 <h3>{% trans "Browser Addons" %}</h3> 17 <h3>{% trans "Browser Addons" %}</h3>
18 <ul> 18 <ul>
19 <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li> 19 <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
20 <li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li> 20 {% if https %}<li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>{% else %}<li>{% trans "Mozilla Services (Social API) Extension needs an https connection" %}</li>{% endif %}
21 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li> 21 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
22 </ul> 22 </ul>
23 <h3>{% trans "Mobile Apps" %}</h3> 23 <h3>{% trans "Mobile Apps" %}</h3>
diff --git a/themes/default/config.twig b/themes/default/config.twig
index e39826c3..24e3e570 100755
--- a/themes/default/config.twig
+++ b/themes/default/config.twig
@@ -17,7 +17,7 @@
17 <h3>Browser Plugins</h3> 17 <h3>Browser Plugins</h3>
18 <ul> 18 <ul>
19 <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li> 19 <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li>
20 <li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li> 20 {% if https %}<li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>{% else %}<li>{% trans "Mozilla Services (Social API) Extension needs an https connection" %}</li>{% endif %}
21 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li> 21 <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li>
22 </ul> 22 </ul>
23 <h3>Mobile Apps</h3> 23 <h3>Mobile Apps</h3>