Use a class instead of a tag as a tab link selector

This commit is contained in:
gregoirenovel 2017-11-21 16:14:34 +01:00
parent 3f55bd33e3
commit a46aa83f00
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@
display: inline-block;
}
a {
.tab-link {
display: inline-block;
height: 72px;
line-height: 72px;

View file

@ -11,16 +11,16 @@
%ul.header-tabs
- if current_gestionnaire.procedures.count > 0
%li
= link_to "Procédures", procedures_path, class: (controller_name != 'avis') ? "active" : nil
= link_to "Procédures", procedures_path, class: (controller_name != 'avis') ? "tab-link active" : 'tab-link'
- if current_gestionnaire.avis.count > 0
%li
= link_to avis_index_path, class: (controller_name == 'avis') ? "active" : nil do
= link_to avis_index_path, class: (controller_name == 'avis') ? "tab-link active" : 'tab-link' do
Avis
- avis_counter = current_gestionnaire.avis.without_answer.count
- if avis_counter > 0
%span.badge.warning= avis_counter
%li
= link_to "Ancienne interface", backoffice_dossiers_path
= link_to "Ancienne interface", backoffice_dossiers_path, class: 'tab-link'
%ul.header-right-content
- if gestionnaire_signed_in?