Skip to content

Commit 2c82b31

Browse files
committed
Moved contributors markup into partial
1 parent 0e5bd3f commit 2c82b31

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/views/search/_result.html.erb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
</span>
1616
</p>
1717

18-
<span class="sr">Contributors: </span>
19-
<ul class="list-inline truncate-list contributors">
20-
<%= render partial: 'shared/contributors', locals: { contributors: result[:contributors] } %>
21-
</ul>
18+
<%= render partial: 'shared/contributors', locals: { contributors: result[:contributors] } %>
2219

2320
<div class="result-highlights">
2421
<%= render partial: 'search/highlights', locals: { result: result } %>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<%= return if contributors.blank? %>
22

3-
<% contributors.uniq do |contributor| %>
4-
<li><%= link_to contributor['value'], results_path({ advanced: true, contributors: contributor['value'] }) %></li>
5-
<% end %>
3+
<span class="sr">Contributors: </span>
4+
<ul class="list-inline truncate-list contributors">
5+
<% contributors.uniq do |contributor| %>
6+
<li><%= link_to contributor['value'], results_path({ advanced: true, contributors: contributor['value'] }) %></li>
7+
<% end %>
8+
</ul>

0 commit comments

Comments
 (0)