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

52 lines
1.5 KiB
Text
Raw Normal View History

- unless ENV['OSEM_ICHAIN_ENABLED'] == 'true'
2014-11-04 17:42:47 +01:00
%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_proposals_path(@conference.short_title)) do
%span.fa.fa-comment
2013-06-27 23:05:07 +02:00
My Submissions
%li
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
2014-11-04 17:42:47 +01:00
= 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_conferences_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
%span.notranslate
= @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
- if can? :index, PaperTrail::Version.new(item_type: 'User')
%li
= link_to(admin_revision_history_path) do
%span.fa.fa-history
Revision History