diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 0894f7f24..9bf49d054 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -71,6 +71,8 @@ window._paq.push(["setCustomVariable", 3, "postUpdateCount", <%= CurrentUser.post_update_count.to_i / 100 %>, "visit"]); window._paq.push(["setCustomVariable", 4, "favoriteCount", <%= CurrentUser.favorite_count.to_i / 100 %>, "visit"]); <% end %> + + window.addthis_config = { ui_click: true }; <%= yield :html_header %> <%= raw Danbooru.config.custom_html_header_content %> diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index a7ffaa4f6..e1150f9ce 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -10,10 +10,12 @@ <%= @post_set.presenter.tag_list_html(current_query: params[:tags], show_extra_links: CurrentUser.user.is_gold?) %> - + <% if Danbooru.config.addthis_key.present? %> + + <% end %> <%= render "posts/partials/index/options" %> diff --git a/app/views/posts/partials/index/_share.html.erb b/app/views/posts/partials/index/_share.html.erb index 8d4793dad..f31f6f09a 100644 --- a/app/views/posts/partials/index/_share.html.erb +++ b/app/views/posts/partials/index/_share.html.erb @@ -1,6 +1,5 @@ -<% if Danbooru.config.addthis_key %> - -