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

46 lines
1.3 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
2014-11-09 14:30:22 +02:00
Edit Profile
-if @conference and @conference.program
2013-06-27 23:05:07 +02:00
%li
= link_to(conference_program_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
- if can? :access, Admin
2013-06-27 23:05:07 +02:00
%li.divider
%li
- if Conference.any?
= link_to(admin_conference_index_path()) do
%span.fa.fa-home
Administration
- if can? :create, Conference
=link_to(new_admin_conference_path) do
%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
- if can? :manage, User.new
2014-10-31 23:00:42 +02:00
%li
= link_to(admin_users_path) do
%span.fa.fa-user
Users