redirect to user when clicking logo if found

This commit is contained in:
Josh 2017-06-07 16:24:29 -04:00
parent 291d815056
commit b9ace4dfa6
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<!-- Header --> <!-- Header -->
<div class='header'> <div class='header'>
<span class="logo-wrapper pull-left"> <span class="logo-wrapper pull-left">
<%= 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 %>
</span> </span>
</div> </div>
<!-- End of Header --> <!-- End of Header -->