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

66 lines
2 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
= link_to(conference_program_tracks_path(@conference.short_title)) do
%span.fa.fa-road
My Tracks
2017-08-15 15:46:33 +03:00
-if @conference && @conference.program && (@conference.program.cfps.for_booths.try(:open?) || current_user.booths.where(conference_id: @conference.id).count > 0)
%li
= link_to (conference_booths_path(@conference.short_title)) do
%span.fa.fa-shopping-bag
My Booth Requests
2013-06-27 23:05:07 +02:00
%li
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
= link_to(destroy_user_ichain_session_path, method: 'delete') do
2014-11-04 17:42:47 +01:00
%span.fa.fa-minus
Sign out
- else
= link_to(destroy_user_session_path, method: 'delete') do
2014-11-04 17:42:47 +01:00
%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
2017-07-11 03:59:52 +05:30
- if can? :new, Conference.new
=link_to(new_admin_conference_path) do
%span.fa.fa-plus
2017-07-11 03:59:52 +05:30
New 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
%li
= link_to(admin_revision_history_path) do
%span.fa.fa-history
Revision History
2017-06-05 11:56:47 +05:30
- if ENV['ORGANIZATIONS_ENABLED'] == 'true'
%li
= link_to(admin_organizations_path) do
%span.fa.fa-group
Organizations