From 62056fc0446dff8e4c0d2b55c1716807123c7833 Mon Sep 17 00:00:00 2001 From: James Mason Date: Tue, 27 Mar 2018 16:40:24 -0700 Subject: [PATCH] Add a registration link to user menu --- app/views/layouts/_user_menu.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/layouts/_user_menu.html.haml b/app/views/layouts/_user_menu.html.haml index 4f3fe416..30e1d27f 100644 --- a/app/views/layouts/_user_menu.html.haml +++ b/app/views/layouts/_user_menu.html.haml @@ -19,6 +19,12 @@ = link_to(edit_user_path(current_user.id)) do %span.fa.fa-user Edit Profile +- 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 + = @conference.short_title + registration -if @conference && @conference.program %li = link_to(conference_program_proposals_path(@conference.short_title)) do