refactor share buttons

This commit is contained in:
r888888888
2018-10-20 19:11:16 -07:00
parent 192ac128cd
commit 0ab6e9f94d
4 changed files with 44 additions and 23 deletions

View File

@@ -14,6 +14,11 @@
<%= render "posts/partials/show/information", :post => @post %>
</section>
<section id="post-share">
<h1>Share</h1>
<%= render "posts/partials/show/share", :post => @post %>
</section>
<section id="post-options">
<h1>Options</h1>
<%= render "posts/partials/show/options", :post => @post %>
@@ -98,8 +103,6 @@
<% if CurrentUser.is_member? && @post.visible? %>
<li><a href="#edit" id="post-edit-link" data-shortcut="e">Edit</a></li>
<% end %>
<li><a href="#share">Share</a></li>
</menu>
<% if RecommenderService.available_for_post?(@post) %>
@@ -128,10 +131,6 @@
<%= render "posts/partials/show/edit", :post => @post %>
</section>
<% end %>
<section id="share" style="display: none;">
<%= render "posts/partials/show/share", :post => @post %>
</section>
</section>
</div>