2017-03-22 22:57:01 +01:00
|
|
|
= navbar do
|
|
|
|
|
= navbar_header
|
|
|
|
|
= navbar_collapse do
|
|
|
|
|
= navbar_group id: 'topnav' do
|
|
|
|
|
= navbar_item "Home", "/#{I18n.locale}"
|
2017-04-11 08:06:32 +02:00
|
|
|
= navbar_dropdown t('.initiative') do
|
|
|
|
|
= navbar_item t('.initiative_text'), initiative_text_path
|
2017-04-11 08:46:21 +02:00
|
|
|
= navbar_item t('.arguments'), arguments_path
|
2017-04-11 09:16:29 +02:00
|
|
|
= navbar_item t('.faq'), faq_path
|
2017-04-12 22:53:08 +02:00
|
|
|
= navbar_item t('.numbers'), numbers_path
|
2017-04-14 12:46:03 +02:00
|
|
|
= navbar_item t('.statements'), statements_path
|
2017-07-06 16:51:04 +02:00
|
|
|
= navbar_item t('donation'), donation_path
|
2017-03-31 14:42:37 +02:00
|
|
|
= navbar_item t('.sign_in'), new_supporter_session_path unless supporter_signed_in?
|
|
|
|
|
= navbar_item t('.sign_out'), destroy_supporter_session_path, nil, 'data-method' => :delete if supporter_signed_in?
|
2017-04-14 11:34:01 +02:00
|
|
|
- if supporter_signed_in? && current_supporter.admin?
|
|
|
|
|
= navbar_dropdown t('admin.title') do
|
|
|
|
|
= navbar_item t('admin.publicities.index.title'), admin_publicities_path
|