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 24, 2020
1 parent dd8b29d commit a9657e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/moments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<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>
Expand Down
2 changes: 1 addition & 1 deletion spec/services/moment_keywords_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
it 'downcases words' do
expect(keywords).to include('addiction')
end

it 'removes special characters' do
expect(keywords).to include('teachers')
end
Expand Down

0 comments on commit a9657e7

Please sign in to comment.