remove my room from header

This commit is contained in:
Zachary Chai 2016-11-21 12:12:20 -05:00
parent 445de38860
commit 62dbefcb68
1 changed files with 5 additions and 2 deletions

View File

@ -21,8 +21,11 @@
</span>
<span class="signup pull-right">
<% if current_user %>
<%= current_user.name %> |
<%= link_to t('my_room'), current_user.room_url %> |
<% if !@user %>
<%= link_to current_user.name, current_user.room_url %> |
<% else %>
<%= current_user.name %> |
<% end %>
<%= link_to t('logout'), user_logout_url %>
<% elsif @user %>
<%= t('are_you', name: @user.username) %> |