Merge pull request #3492 from bdunogier/fix-3484-disable_share_link

Fix 3484: hide the share toggle button if no service is enabled
This commit is contained in:
Nicolas Lœuillet 2017-12-12 20:24:36 +01:00 committed by GitHub
commit d80e9931f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,15 @@
<div class="collapsible-body"></div>
</li>
{% if craue_setting('share_public')
or craue_setting('share_twitter')
or craue_setting('share_shaarli')
or craue_setting('share_scuttle')
or craue_setting('share_diaspora')
or craue_setting('share_unmark')
or craue_setting('carrot')
or craue_setting('share_mail')
%}
<li class="bold">
<a class="waves-effect collapsible-header">
<i class="material-icons small">share</i>
@ -169,6 +178,7 @@
</ul>
</div>
</li>
{% endif %}
{% if craue_setting('show_printlink') %}
<li class="bold border-bottom hide-on-med-and-down">