Use HTML beautifier to indent ERB files
We had inconsistent indentation in many places. Now we're fixing them and adding a linter to our CI so we don't accidentally introduce inconsistent indentations again.
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
|
||||
<div class="small-12 medium-3 column highlight padding">
|
||||
<strong><%= t("admin.poll_shifts.new.officer") %></strong>
|
||||
<br><%= officer.name %>
|
||||
<br>
|
||||
<%= officer.name %>
|
||||
<%= f.hidden_field :officer_id, value: officer.id %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,28 +17,28 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% pages.each do |page| %>
|
||||
<tr id="<%= dom_id(page) %>">
|
||||
<td><%= page.title %></td>
|
||||
<td><%= page.slug %></td>
|
||||
<td><%= I18n.l page.created_at, format: :long %></td>
|
||||
<td><%= I18n.l page.updated_at, format: :long %></td>
|
||||
<td><%= t("admin.site_customization.pages.page.status_#{page.status}") %></td>
|
||||
<td>
|
||||
<%= render Admin::TableActionsComponent.new(page) do |actions| %>
|
||||
<%= actions.action(:cards,
|
||||
text: t("admin.site_customization.pages.page.see_cards"),
|
||||
path: admin_site_customization_page_widget_cards_path(page)) %>
|
||||
<% pages.each do |page| %>
|
||||
<tr id="<%= dom_id(page) %>">
|
||||
<td><%= page.title %></td>
|
||||
<td><%= page.slug %></td>
|
||||
<td><%= I18n.l page.created_at, format: :long %></td>
|
||||
<td><%= I18n.l page.updated_at, format: :long %></td>
|
||||
<td><%= t("admin.site_customization.pages.page.status_#{page.status}") %></td>
|
||||
<td>
|
||||
<%= render Admin::TableActionsComponent.new(page) do |actions| %>
|
||||
<%= actions.action(:cards,
|
||||
text: t("admin.site_customization.pages.page.see_cards"),
|
||||
path: admin_site_customization_page_widget_cards_path(page)) %>
|
||||
|
||||
<% if page.status == "published" %>
|
||||
<%= actions.action(:show,
|
||||
text: t("admin.site_customization.pages.index.see_page"),
|
||||
path: page.url) %>
|
||||
<% if page.status == "published" %>
|
||||
<%= actions.action(:show,
|
||||
text: t("admin.site_customization.pages.index.see_page"),
|
||||
path: page.url) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -30,7 +30,9 @@
|
||||
|
||||
<table class="investment-projects-summary">
|
||||
<thead>
|
||||
<tr><th colspan="2"><%= t("admin.stats.budget_balloting.votes_per_heading") %></th></tr>
|
||||
<tr>
|
||||
<th colspan="2"><%= t("admin.stats.budget_balloting.votes_per_heading") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@@ -49,7 +51,9 @@
|
||||
|
||||
<table class="investment-projects-summary user-count-by-heading">
|
||||
<thead>
|
||||
<tr><th colspan="2"><%= t("admin.stats.budget_balloting.participants_per_district") %></th></tr>
|
||||
<tr>
|
||||
<th colspan="2"><%= t("admin.stats.budget_balloting.participants_per_district") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<div class="small-12 medium-4 column">
|
||||
<%= tag.p(**options) do %>
|
||||
<%= text %> <br><span class="number"><%= amount %></span>
|
||||
<%= text %> <br>
|
||||
<span class="number"><%= amount %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user