some style
Co-authored-by: Christophe Robillard <christophe.robillard@beta.gouv.fr>
This commit is contained in:
parent
7cce505dce
commit
a02c598a43
2 changed files with 25 additions and 10 deletions
15
app/assets/stylesheets/archive.scss
Normal file
15
app/assets/stylesheets/archive.scss
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue