Remove unnecessary content_tag calls
We're usually using HTML tags in views instead.
This commit is contained in:
@@ -33,13 +33,11 @@
|
||||
<%= link_to question.title, edit_admin_legislation_process_question_path(@process, question) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= content_tag :ul do %>
|
||||
<ul>
|
||||
<% question.question_options.each do |question_option| %>
|
||||
<%= content_tag :li do %>
|
||||
<%= question_option.value %> (<%= question_option.answers_count %>)
|
||||
<% end %>
|
||||
<li><%= "#{question_option.value} (#{question_option.answers_count})" %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</td>
|
||||
<td class="text-center"><%= question.answers_count %></td>
|
||||
<td class="text-center"><%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %></td>
|
||||
|
||||
@@ -11,17 +11,17 @@
|
||||
<div class="small-12 medium-3 column">
|
||||
<% if @question.next_question_id %>
|
||||
<%= link_to legislation_process_question_path(@process, @question.next_question_id), class: "quiz-next-link" do %>
|
||||
<%= content_tag :div, class: "quiz-next" do %>
|
||||
<div class="quiz-next">
|
||||
<%= t(".next_question") %>
|
||||
<span class="icon-angle-right" aria-hidden="true">
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% elsif @question.first_question_id %>
|
||||
<%= link_to legislation_process_question_path(@process, @question.first_question_id), class: "quiz-next-link" do %>
|
||||
<%= content_tag :div, class: "quiz-next" do %>
|
||||
<div class="quiz-next">
|
||||
<%= t(".first_question") %>
|
||||
<span class="icon-angle-right" aria-hidden="true">
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user