osem-fcy/app/views/layouts/_user_menu.html.haml

40 lines
1.1 KiB
Text
Raw Normal View History

2014-11-04 17:42:47 +01:00
- unless CONFIG['authentication']['ichain']['enabled']
%li
= link_to(edit_user_registration_path) do
%span.fa.fa-wrench
Edit Account
2013-06-27 23:05:07 +02:00
%li
2014-11-04 17:42:47 +01:00
= link_to(edit_user_path(current_user.id)) do
%span.fa.fa-user
Edit Profil
2013-06-27 23:05:07 +02:00
-if @conference and @conference.id
%li
= link_to(conference_proposal_index_path(@conference.short_title)) do
%span.fa.fa-comment
2013-06-27 23:05:07 +02:00
My Submissions
%li
2014-11-04 17:42:47 +01:00
- if CONFIG['authentication']['ichain']['enabled']
= link_to(destroy_user_ichain_session_path, :method=>'delete') do
%span.fa.fa-minus
Sign out
- else
= link_to(destroy_user_session_path, :method=>'delete') do
%span.fa.fa-minus
Sign out
2014-08-12 11:51:59 +03:00
- if can? :index, Conference
2013-06-27 23:05:07 +02:00
%li.divider
%li
2014-05-23 14:30:59 +02:00
= link_to(admin_conference_index_path()) do
- if Conference.any?
%span.fa.fa-home
Administration
- else
%span.fa.fa-plus
Create Conference
2014-08-12 11:51:59 +03:00
-if @conference and @conference.id and can? :show, @conference
2014-05-23 14:30:59 +02:00
%li
= link_to(admin_conference_path(@conference.short_title)) do
%span.fa.fa-cog
2014-05-23 14:30:59 +02:00
Manage
= @conference.short_title