osem-fcy/app/views/layouts/_user_menu.html.haml
2014-08-13 22:53:13 +03:00

25 lines
794 B
Text

%li
= link_to(edit_user_registration_path) do
%span.glyphicon.glyphicon-wrench
Edit Account
-if @conference and @conference.id
%li
= link_to(conference_proposal_index_path(@conference.short_title)) do
%span.glyphicon.glyphicon-comment
My Submissions
%li
= link_to(destroy_user_session_path, :method=>'delete') do
%span.glyphicon.glyphicon-minus
Sign out
- if can? :index, Conference
%li.divider
%li
= link_to(admin_conference_index_path()) do
%span.glyphicon.glyphicon-home
Administration
-if @conference and @conference.id and can? :show, @conference
%li
= link_to(admin_conference_path(@conference.short_title)) do
%span.glyphicon.glyphicon-cog
Manage
= @conference.short_title