Skip to content

Commit

Permalink
[ifmeorg#1713] Display 3 resource links only on moment show
Browse files Browse the repository at this point in the history
  • Loading branch information
AlineRibeiro committed Apr 23, 2020
1 parent 4a5e209 commit 81dfc1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/moments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@
<div class="smallMarginTop">
<div class="label"><%= label_tag "What resources could help?" %> </div>
<ul>
<% @resources.each do |item| %>
<% @resources.take(3).each do |item| %>
<li><%= link_to item['name'], item['link'] %></li>
<%end %>
<li><%= link_to 'More...', "/resources?#{@filter_tags}" %></li>
</ul>
</div>
<% end %>
<% if @moment.owned_by?(current_user) && @moment.shared? %>
<div class="smallMarginTop">
<%= react_component('Form', props: secret_share_props(@moment)) %>
Expand Down

0 comments on commit 81dfc1a

Please sign in to comment.