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

26 lines
814 B
Text
Raw Normal View History

2013-06-27 23:05:07 +02:00
%li
= link_to(edit_user_registration_path) do
2014-04-14 18:10:38 +02:00
%span.glyphicon.glyphicon-wrench
2013-06-27 23:05:07 +02:00
Edit Account
-if @conference and @conference.id
%li
= link_to(conference_proposal_index_path(@conference.short_title)) do
2014-04-14 18:10:38 +02:00
%span.glyphicon.glyphicon-comment
2013-06-27 23:05:07 +02:00
My Submissions
%li
= link_to(destroy_user_session_path, :method=>'delete') do
2014-04-14 18:10:38 +02:00
%span.glyphicon.glyphicon-minus
2013-06-27 23:05:07 +02:00
Sign out
-if has_role?(current_user, "admin") || has_role?(current_user, "organizer")
%li.divider
%li
2014-05-23 14:30:59 +02:00
= link_to(admin_conference_index_path()) do
%span.glyphicon.glyphicon-home
Administration
-if @conference and @conference.id
%li
= link_to(admin_conference_path(@conference.short_title)) do
%span.glyphicon.glyphicon-cog
Manage
= @conference.short_title