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
|
= link_to 'la documentation', ARCHIVAGE_DOC_URL
|
||||||
afin de voir les options à votre disposition pour mettre en place un système d’archive.
|
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
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
%th Nombre de dossiers terminés
|
%th.text-right Nombre de dossiers terminés
|
||||||
%th Poids estimé
|
%th.text-right Poids estimé
|
||||||
%th Télécharger
|
%th.center Télécharger
|
||||||
|
|
||||||
%tbody
|
%tbody
|
||||||
%tr
|
%tr
|
||||||
|
@ -38,11 +38,11 @@
|
||||||
- weight = @poids_total
|
- weight = @poids_total
|
||||||
%td
|
%td
|
||||||
Tous les dossiers
|
Tous les dossiers
|
||||||
%td
|
%td.text-right
|
||||||
= @nb_dossiers
|
= @nb_dossiers
|
||||||
%td
|
%td.text-right
|
||||||
= number_to_human_size(weight)
|
= number_to_human_size(weight)
|
||||||
%td
|
%td.center
|
||||||
- if matching_archive.try(&:available?)
|
- if matching_archive.try(&:available?)
|
||||||
= link_to url_for(matching_archive.file), class: 'button primary' do
|
= link_to url_for(matching_archive.file), class: 'button primary' do
|
||||||
%span.icon.download-white
|
%span.icon.download-white
|
||||||
|
@ -70,11 +70,11 @@
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
= I18n.l(month, format: "%B %Y")
|
= I18n.l(month, format: "%B %Y")
|
||||||
%td
|
%td.text-right
|
||||||
= nb_dossiers_termines
|
= nb_dossiers_termines
|
||||||
%td
|
%td.text-right
|
||||||
= number_to_human_size(weight)
|
= number_to_human_size(weight)
|
||||||
%td
|
%td.center
|
||||||
- if matching_archive.present?
|
- if matching_archive.present?
|
||||||
- if matching_archive.status == 'generated' && matching_archive.file.attached?
|
- if matching_archive.status == 'generated' && matching_archive.file.attached?
|
||||||
= link_to url_for(matching_archive.file), class: 'button primary' do
|
= link_to url_for(matching_archive.file), class: 'button primary' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue