Changing css for index dossier counting, wording

This commit is contained in:
JC 2017-01-02 16:07:20 +01:00
parent a680eaed1c
commit 620a8559dd
3 changed files with 43 additions and 10 deletions

View file

@ -56,6 +56,9 @@ h5 span {
padding: 15px 40px 15px 20px; padding: 15px 40px 15px 20px;
cursor: pointer; cursor: pointer;
line-height: 1.8em; line-height: 1.8em;
.progress-bar-warning {
background-color: #E4594F;
}
} }
.procedure_list_element:hover, .notification:hover { .procedure_list_element:hover, .notification:hover {
background-color: #668ABD; background-color: #668ABD;

View file

@ -14,23 +14,51 @@
font-family: Arial; font-family: Arial;
font-size: 16px; font-size: 16px;
line-height: 18px; line-height: 18px;
margin-top: 20px;
.infos { .infos {
font-size: 25px; font-size: 25px;
text-align: center; text-align: center;
margin: 20px 10px 30px 0; margin: 10px 10px 30px 0;
.projet-name { .projet-name {
font-size: 25px; font-size: 25px;
line-height: normal; line-height: normal;
padding: 5px; padding: 5px;
} }
} }
.count {
display: inline-block;
padding: 3px;
border-radius: 25px;
min-width: 40px;
text-align: center;
line-height: 23px;
}
.text {
display: inline-block;
width: 30px;
margin: 0 0 0 8px;
}
.dossiers-en-cours, .en-cours { .dossiers-en-cours, .en-cours {
margin-top: 20px; margin-top: 20px;
} }
.dossiers-en-cours {
.count {
border: 1px solid #FFFFFF;
}
}
.nouveaux-dossiers {
.count {
background-color: #5CB85C;
}
}
.nouvelles-notifications {
.count {
background-color: #E4594F;
}
}
.dossiers-en-cours, .nouveaux-dossiers, .nouvelles-notifications, .en-cours { .dossiers-en-cours, .nouveaux-dossiers, .nouvelles-notifications, .en-cours {
line-height: initial; margin: 5px auto 0 20px;
text-align: center; width: 150px;
margin-right: 10px;
} }
} }
#action-block { #action-block {

View file

@ -1,16 +1,18 @@
%div#first-block %div#first-block
%div.dossiers-en-cours %div.dossiers-en-cours
= @facade_data_view.total_dossier .count= @facade_data_view.total_dossier
DOSSIERS SUIVIS .text= "SUIVIS"
%div.nouveaux-dossiers %div.nouveaux-dossiers
= @facade_data_view.total_new_dossier .count= @facade_data_view.total_new_dossier
NOUVEAUX DOSSIERS .text= "NOUVEAUX"
%div.nouvelles-notifications %div.nouvelles-notifications
- new_notifications = @facade_data_view.dossiers_with_unread_notifications.count - new_notifications = @facade_data_view.dossiers_with_unread_notifications.count
- if new_notifications > 1 - if new_notifications > 1
= "#{new_notifications} DOSSIERS MODIFIÉS" .count= new_notifications
.text= "MODIFIÉS"
- elsif new_notifications == 1 - elsif new_notifications == 1
1 DOSSIER MODIFIÉ .count 1
.text= "MODIFIÉ"
%div#action-block %div#action-block