Skip to content

Commit

Permalink
feat: Reorder table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Feb 21, 2025
1 parent 2b54230 commit 794fa7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/sites/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
<% t.with_head do %>
<tr>
<th scope="col"><%= Site.human(:url) %></th>
<th scope="col"><%= Site.human(:detail) %></th>
<% Check.classes.collect(&:table_header).each do |header| %>
<th scope="col" class="fr-cell--center"><%= header %></th>
<% end %>
<th scope="col"><%= Site.human(:last_audit_at) %></th>
<th scope="col"><%= t("shared.actions") %></th>
</tr>
<% end %>
<% t.with_body do %>
<% @sites.each do |site| %>
<tr>
<td><%= link_to site.url_without_scheme, site %></td>
<td><%= link_to site.url_without_scheme, site.url, target: :_blank %></td>
<td><%= link_to Site.human(:view), site, title: Site.human(:view_name, name: site.name) %></td>
<% site.audit.all_checks.each do |check| %>
<td class="fr-cell--center"><%= badge check.to_badge, tooltip: true %></td>
<% end %>
Expand All @@ -23,7 +24,6 @@
(<%= time_ago site.audit.checked_at %>)
<% end %>
</td>
<td><%= link_to "Voir le site", site.url, target: :_blank %></td>
</tr>
<% end %>
<% end %>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ fr:
updated_at: Date de mise à jour
url: Adresse du site
last_audit_at: Dernier audit
detail: Détails
view: Voir la fiche
view_name: Voir la fiche de %{name}
count:
zero: Aucun site
one: Un site
Expand Down

0 comments on commit 794fa7f

Please sign in to comment.