diff --git a/app/assets/stylesheets/archive.scss b/app/assets/stylesheets/archive.scss new file mode 100644 index 000000000..676c6cbe9 --- /dev/null +++ b/app/assets/stylesheets/archive.scss @@ -0,0 +1,15 @@ +@import "constants"; + +table.archive-table { + .text-right { + text-align: right; + } + + .center { + text-align: center; + } + + td { + padding: 3 * $default-spacer $default-spacer; + } +} diff --git a/app/views/instructeurs/archives/index.html.haml b/app/views/instructeurs/archives/index.html.haml index 979b4fb91..74fbdf13d 100644 --- a/app/views/instructeurs/archives/index.html.haml +++ b/app/views/instructeurs/archives/index.html.haml @@ -21,13 +21,13 @@ = link_to 'la documentation', ARCHIVAGE_DOC_URL afin de voir les options à votre disposition pour mettre en place un système d’archive. - %table.table.hoverable + %table.table.hoverable.archive-table %thead %tr %th   - %th Nombre de dossiers terminés - %th Poids estimé - %th Télécharger + %th.text-right Nombre de dossiers terminés + %th.text-right Poids estimé + %th.center Télécharger %tbody %tr @@ -38,11 +38,11 @@ - weight = @poids_total %td Tous les dossiers - %td + %td.text-right = @nb_dossiers - %td + %td.text-right = number_to_human_size(weight) - %td + %td.center - if matching_archive.try(&:available?) = link_to url_for(matching_archive.file), class: 'button primary' do %span.icon.download-white @@ -70,11 +70,11 @@ %tr %td = I18n.l(month, format: "%B %Y") - %td + %td.text-right = nb_dossiers_termines - %td + %td.text-right = number_to_human_size(weight) - %td + %td.center - if matching_archive.present? - if matching_archive.status == 'generated' && matching_archive.file.attached? = link_to url_for(matching_archive.file), class: 'button primary' do