Link is added to the sidebar title to directly go to the region's organisations

Refs #123
This commit is contained in:
echarp 2018-04-08 19:34:44 +02:00
parent bef9773d55
commit ab3c2e4c53
1 changed files with 4 additions and 3 deletions

View File

@ -17,9 +17,10 @@
- if controller.controller_name == 'events' && controller.action_name == 'show'
%aside#orga-list
- if @event.region.present? && @event.region.orgas.present?
%h1
%em.fa.fa-users
= t '.orga-list'
%h1{ title: @event.region }
= link_to orgas_path region: @event.region do
%em.fa.fa-users
= t '.orga-list'
%ul.fa-ul
- @event.region.orgas.select(&:active).each do |orga|
%li