replace instructeur_avis_index url by instructeur_all_avis url

This commit is contained in:
Christophe Robillard 2020-04-16 17:52:58 +02:00
parent dcb9afaf25
commit 72d27ffdb2
8 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,7 @@
.sub-header
.container
%ul.breadcrumbs
%li= link_to('Avis', instructeur_avis_index_path)
%li= link_to('Avis', instructeur_all_avis_path)
%li= "#{dossier.procedure.libelle}, dossier nº #{dossier.id}"
%ul.tabs

View file

@ -7,13 +7,13 @@
%h1.tab-title Avis
%ul.tabs
= tab_item('avis à donner',
instructeur_avis_index_path(statut: Instructeurs::AvisController::A_DONNER_STATUS),
instructeur_all_avis_path(statut: Instructeurs::AvisController::A_DONNER_STATUS),
active: @statut == Instructeurs::AvisController::A_DONNER_STATUS,
badge: @avis_a_donner.count,
notification: @avis_a_donner.any?)
= tab_item("avis #{'donné'.pluralize(@avis_donnes.count)}",
instructeur_avis_index_path(statut: Instructeurs::AvisController::DONNES_STATUS),
instructeur_all_avis_path(statut: Instructeurs::AvisController::DONNES_STATUS),
active: @statut == Instructeurs::AvisController::DONNES_STATUS,
badge: @avis_donnes.count)

View file

@ -32,7 +32,7 @@
= active_link_to "Démarches", instructeur_procedures_path, active: :inclusive, class: 'tab-link'
- if current_instructeur.avis.count > 0
%li
= active_link_to instructeur_avis_index_path, active: :inclusive, class: 'tab-link' do
= active_link_to instructeur_all_avis_path, active: :inclusive, class: 'tab-link' do
Avis
- avis_counter = current_instructeur.avis.without_answer.count
- if avis_counter > 0