From b9ace4dfa68a76028036e7d250c41b3205ed1427 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 7 Jun 2017 16:24:29 -0400 Subject: [PATCH] redirect to user when clicking logo if found --- app/views/layouts/application.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 0eee7309..3dd492f3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -66,7 +66,11 @@ with BigBlueButton; if not, see .
- <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton", :class => "logo"), root_path %> + <% if current_user %> + <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton", :class => "logo"), meeting_room_path('rooms', User.find(current_user).encrypted_id) %> + <% else %> + <%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton", :class => "logo"), root_path %> + <% end %>