Use .tabs instead of .dossier-categories in procedures#show

This commit is contained in:
gregoirenovel 2017-08-28 10:52:25 +02:00 committed by Mathieu Magnin
parent 93cb2ec118
commit 590c572106
2 changed files with 6 additions and 59 deletions

View file

@ -13,59 +13,6 @@
margin-bottom: 2 * $default-padding; margin-bottom: 2 * $default-padding;
} }
.dossiers-categories {
li {
display: inline-block;
line-height: 36px;
position: relative;
text-align: center;
font-size: 14px;
padding-left: 20px;
padding-right: 20px;
border-radius: 3px 3px 0 0;
border: 1px solid transparent;
a {
color: $black;
}
&.active {
background-color: white;
border-top: 1px solid $border-grey;
border-left: 1px solid $border-grey;
border-right: 1px solid $border-grey;
a {
color: $blue;
}
.dossiers-count {
color: $blue;
}
}
&:hover {
a {
color: $blue;
}
.dossiers-count {
color: $blue;
}
}
.dossiers-count {
background-color: rgba(0,0,0,0.08);
padding-left: 5px;
padding-right: 5px;
border-radius: 100px;
font-weight: bold;
color: rgba(0,0,0,0.6);
font-size: 14px;
}
}
}
.dossiers-table { .dossiers-table {
margin: (2 * $default-padding) auto; margin: (2 * $default-padding) auto;
width: 100%; width: 100%;

View file

@ -6,31 +6,31 @@
.width-100 .width-100
%h1= @procedure.libelle %h1= @procedure.libelle
%ul.dossiers-categories %ul.tabs
%li{ class: (@statut == 'a-suivre') ? 'active' : nil }> %li{ class: (@statut == 'a-suivre') ? 'active' : nil }>
= link_to(procedure_path(@procedure, statut: 'a-suivre')) do = link_to(procedure_path(@procedure, statut: 'a-suivre')) do
à suivre à suivre
%span.dossiers-count= @a_suivre_dossiers.count %span.badge= @a_suivre_dossiers.count
%li{ class: (@statut == 'suivis') ? 'active' : nil }> %li{ class: (@statut == 'suivis') ? 'active' : nil }>
= link_to(procedure_path(@procedure, statut: 'suivis')) do = link_to(procedure_path(@procedure, statut: 'suivis')) do
= t('pluralize.followed', count: @followed_dossiers.count) = t('pluralize.followed', count: @followed_dossiers.count)
%span.dossiers-count= @followed_dossiers.count %span.badge= @followed_dossiers.count
%li{ class: (@statut == 'traites') ? 'active' : nil }> %li{ class: (@statut == 'traites') ? 'active' : nil }>
= link_to(procedure_path(@procedure, statut: 'traites')) do = link_to(procedure_path(@procedure, statut: 'traites')) do
= t('pluralize.processed', count: @termines_dossiers.count) = t('pluralize.processed', count: @termines_dossiers.count)
%span.dossiers-count= @termines_dossiers.count %span.badge= @termines_dossiers.count
%li{ class: (@statut == 'tous') ? 'active' : nil }> %li{ class: (@statut == 'tous') ? 'active' : nil }>
= link_to(procedure_path(@procedure, statut: 'tous')) do = link_to(procedure_path(@procedure, statut: 'tous')) do
tous les dossiers tous les dossiers
%span.dossiers-count= @all_state_dossiers.count %span.badge= @all_state_dossiers.count
%li{ class: (@statut == 'archives') ? 'active' : nil }> %li{ class: (@statut == 'archives') ? 'active' : nil }>
= link_to(procedure_path(@procedure, statut: 'archives')) do = link_to(procedure_path(@procedure, statut: 'archives')) do
= t('pluralize.archived', count: @archived_dossiers.count) = t('pluralize.archived', count: @archived_dossiers.count)
%span.dossiers-count= @archived_dossiers.count %span.badge= @archived_dossiers.count
.container .container
- if @dossiers.present? - if @dossiers.present?