addthis: update script, hide when not enabled.
* Hide 'Share' section from sidebar when Addthis isn't enabled. * Don't show popup menu until click.
This commit is contained in:
@@ -12,10 +12,12 @@
|
||||
<%= render "posts/partials/show/information", :post => @post %>
|
||||
</section>
|
||||
|
||||
<section id="post-share">
|
||||
<h1>Share</h1>
|
||||
<%= render "posts/partials/show/share", :post => @post %>
|
||||
</section>
|
||||
<% if Danbooru.config.addthis_key.present? %>
|
||||
<section id="post-share">
|
||||
<h1>Share</h1>
|
||||
<%= render "posts/partials/show/share", post: @post %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<section id="post-options">
|
||||
<h1>Options</h1>
|
||||
|
||||
Reference in New Issue
Block a user