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

26 lines
794 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
2014-08-12 11:51:59 +03:00
- if can? :index, Conference
2013-06-27 23:05:07 +02:00
%li.divider
%li
2014-05-23 14:30:59 +02:00
= link_to(admin_conference_index_path()) do
%span.glyphicon.glyphicon-home
Administration
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.glyphicon.glyphicon-cog
Manage
= @conference.short_title