Add partial with access button to community.

This commit is contained in:
taitus
2017-08-29 13:00:18 +02:00
parent 0d76004636
commit 456672c0b9
3 changed files with 8 additions and 12 deletions

View File

@@ -123,12 +123,7 @@
<%= render 'follows/follow_button', follow: find_or_build_follow(current_user, investment) %>
<% end %>
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.title") %></h2>
<p>
<%= t("community.sidebar.description") %>
</p>
<%= link_to t("community.sidebar.button_to_access"), community_path(investment.community_id), class: 'button hollow expanded' %>
<%= render 'communities/access_button', community_id: investment.community_id %>
</aside>
</div>

View File

@@ -0,0 +1,6 @@
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.title") %></h2>
<p>
<%= t("community.sidebar.description") %>
</p>
<%= link_to t("community.sidebar.button_to_access"), community_path(community_id), class: 'button hollow expanded' %>

View File

@@ -159,12 +159,7 @@
<%= render 'follows/follow_button', follow: find_or_build_follow(current_user, @proposal) %>
<% end %>
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.title") %></h2>
<p>
<%= t("community.sidebar.description") %>
</p>
<%= link_to t("community.sidebar.button_to_access"), community_path(@proposal.community_id), class: 'button hollow expanded' %>
<%= render 'communities/access_button', community_id: @proposal.community_id %>
</aside>
</div>