Replace content_tag with new tag builder syntax

One of the main advantages of this syntax is we can now omit the content
parameter when it's empty.
This commit is contained in:
Javi Martín
2019-06-21 00:57:06 +02:00
parent fa070f326e
commit 749428d93f
16 changed files with 36 additions and 39 deletions

View File

@@ -21,7 +21,7 @@
<tbody>
<% @officer_assignments.each do |officer_assignment| %>
<tr id="<%= dom_id officer_assignment %>">
<td><%= l(officer_assignment.date.to_date) %> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %></td>
<td><%= l(officer_assignment.date.to_date) %> <%= tag.strong t("polls.final_date") if officer_assignment.final %></td>
<td><%= booth_name_with_location(officer_assignment.booth_assignment.booth) %></td>
</tr>
<% end %>