Add partial with access button to community.
This commit is contained in:
@@ -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>
|
||||
|
||||
6
app/views/communities/_access_button.html.erb
Normal file
6
app/views/communities/_access_button.html.erb
Normal 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' %>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user