2018-06-08 18:18:04 -07:00
|
|
|
- if can? :index, Comment
|
|
|
|
|
%li.dropdown-header
|
|
|
|
|
%span.fa.fa-comment
|
|
|
|
|
Notifications (#{unread_notifications(current_user).length})
|
|
|
|
|
- if unread_notifications(current_user).length > 0
|
|
|
|
|
%li.dropdown-header Last 5 Comments for:
|
|
|
|
|
- unread_notifications(current_user).limit(5).group_by{ |comment| comment.commentable}.each do |event, comments|
|
|
|
|
|
%li= link_to("#{event.title}(#{comments.count})", admin_conference_program_event_path(event.program.conference.short_title, event.id))
|
|
|
|
|
%li.divider
|
|
|
|
|
%li= link_to "See all unread Comments (#{unread_notifications(current_user).length})", admin_comments_path
|
|
|
|
|
%li= link_to 'See all Comments', admin_comments_path(anchor: 'all_comments')
|
|
|
|
|
%li.divider
|
2022-05-06 14:27:15 +02:00
|
|
|
- unless ENV.fetch('OSEM_ICHAIN_ENABLED', nil) == '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
|
2018-03-27 16:40:24 -07:00
|
|
|
- if @conference && ((current_user && @conference.user_registered?(current_user)) || @conference.registration_open?)
|
|
|
|
|
%li
|
|
|
|
|
= link_to(conference_conference_registration_path(@conference)) do
|
|
|
|
|
%span.fa.fa-id-badge
|
2020-01-12 21:25:54 +02:00
|
|
|
= @conference.short_title
|
|
|
|
|
registration
|
2017-11-17 19:34:26 -08:00
|
|
|
-if @conference && @conference.program
|
2013-06-27 23:05:07 +02:00
|
|
|
%li
|
2016-09-14 22:42:04 -04:00
|
|
|
= link_to(conference_program_proposals_path(@conference.short_title)) do
|
2014-08-15 18:30:21 -07:00
|
|
|
%span.fa.fa-comment
|
2013-06-27 23:05:07 +02:00
|
|
|
My Submissions
|
2017-07-19 18:28:57 +03:00
|
|
|
%li
|
|
|
|
|
= link_to(conference_program_tracks_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-road
|
|
|
|
|
My Tracks
|
2017-11-17 19:34:26 -08:00
|
|
|
-if @conference && (@conference.call_for_booths.try(:open?) || current_user.booths.where(conference_id: @conference.id).count > 0)
|
2017-08-15 15:46:33 +03:00
|
|
|
%li
|
|
|
|
|
= link_to (conference_booths_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-shopping-bag
|
2019-07-22 00:59:17 +05:30
|
|
|
My #{(t'booth').capitalize } Requests
|
2013-06-27 23:05:07 +02:00
|
|
|
%li
|
2022-05-06 14:27:15 +02:00
|
|
|
- if ENV.fetch('OSEM_ICHAIN_ENABLED', nil) == 'true'
|
2017-03-11 13:25:39 +05:30
|
|
|
= 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
|
2017-03-11 13:25:39 +05:30
|
|
|
= link_to(destroy_user_session_path, method: 'delete') do
|
2014-11-04 17:42:47 +01:00
|
|
|
%span.fa.fa-minus
|
|
|
|
|
Sign out
|
2015-09-15 12:39:36 +02:00
|
|
|
- if can? :access, Admin
|
2013-06-27 23:05:07 +02:00
|
|
|
%li.divider
|
|
|
|
|
%li
|
2015-09-16 12:23:45 +02:00
|
|
|
- if Conference.any?
|
2016-09-14 22:42:04 -04:00
|
|
|
= link_to(admin_conferences_path()) do
|
2014-08-15 18:30:21 -07:00
|
|
|
%span.fa.fa-home
|
2015-09-16 12:23:45 +02:00
|
|
|
Administration
|
2017-07-11 03:59:52 +05:30
|
|
|
- if can? :new, Conference.new
|
2015-09-16 12:23:45 +02:00
|
|
|
=link_to(new_admin_conference_path) do
|
2014-08-15 18:30:21 -07:00
|
|
|
%span.fa.fa-plus
|
2017-07-11 03:59:52 +05:30
|
|
|
New Conference
|
2017-11-17 19:34:26 -08:00
|
|
|
-if @conference && @conference.id && can?(:show, @conference)
|
2014-05-23 14:30:59 +02:00
|
|
|
%li
|
|
|
|
|
= link_to(admin_conference_path(@conference.short_title)) do
|
2014-08-15 18:30:21 -07:00
|
|
|
%span.fa.fa-cog
|
2014-05-23 14:30:59 +02:00
|
|
|
Manage
|
2016-03-26 23:32:43 +01:00
|
|
|
%span.notranslate
|
|
|
|
|
= @conference.short_title
|
2015-04-15 10:23:24 +02:00
|
|
|
- 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
|
2016-08-06 17:22:53 +05:30
|
|
|
- if can? :index, PaperTrail::Version
|
2016-05-24 23:54:46 +05:30
|
|
|
%li
|
|
|
|
|
= link_to(admin_revision_history_path) do
|
|
|
|
|
%span.fa.fa-history
|
|
|
|
|
Revision History
|
2022-05-06 14:27:15 +02:00
|
|
|
- if ENV.fetch('OSEM_ICHAIN_ENABLED', nil) == 'true'
|
2017-06-05 11:56:47 +05:30
|
|
|
%li
|
|
|
|
|
= link_to(admin_organizations_path) do
|
|
|
|
|
%span.fa.fa-group
|
|
|
|
|
Organizations
|