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:
Javi Martín
2025-02-20 18:41:46 +01:00
parent b4b33926cf
commit b51aa31e6a
66 changed files with 574 additions and 558 deletions

View File

@@ -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>