Skip to content

Commit

Permalink
[#1737] Refactored code to be dry
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Warmenhoven committed May 8, 2020
1 parent 22bc905 commit ea09089
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/moments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
</div>
<% end %>

<% if @moment.resource_recommendations? %>
<% if @resources.any? %>
<% if @moment.resource_recommendations? && @resources.any? %>
<div class="smallMarginTop">
<div class="label"><%= label_tag t('moments.show.resources') %></div>
<ul>
Expand All @@ -54,7 +53,6 @@
<li><%= link_to "#{t('load_more')}...", "/resources?#{@resources_tags}" %></li>
</ul>
</div>
<% end %>
<% end %>

<% if @moment.owned_by?(current_user) && @moment.shared? %>
Expand Down

0 comments on commit ea09089

Please sign in to comment.