table builder: eliminate is_html_safe flag.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<%= table_for @post_versions, {id: "post-versions-table", class: "striped autofit"} do |t| %>
|
||||
<% if CurrentUser.user.is_builder? %>
|
||||
<% t.column "<label><input type=\"checkbox\" id=\"post-version-select-all-checkbox\" class=\"post-version-select-checkbox\"></label>", {class: "post-version-select-column"}, nil, true do |post_version| %>
|
||||
<% t.column tag.label(tag.input type: :checkbox, id: "post-version-select-all-checkbox", class: "post-version-select-checkbox"), { class: "post-version-select-column" } do |post_version| %>
|
||||
<input type="checkbox" class="post-version-select-checkbox" <%= "disabled" unless post_version.can_undo?(CurrentUser.user) %>>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
<tr>
|
||||
<% table.columns.each do |column| %>
|
||||
<%= tag.th column.header_attributes do %>
|
||||
<% if column.is_html_safe %>
|
||||
<%= column.name.html_safe %>
|
||||
<% else %>
|
||||
<%= column.name %>
|
||||
<% end %>
|
||||
<%= column.name %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user