-
<%= t('logged_in_description_html', link: link_to(current_user.name, current_user.room_url)) %>
-
<%= link_to t('logout'), user_logout_url %>
+ <% if @main_room %>
+
<%= t('logged_in_description_html', link: link_to(current_user.name, current_user.room_url)) %>
+ <% else %>
+ <%= link_to(t('return_to_room'), current_user.room_url) %>
+ <% end %>
+
<%= link_to t('logout'), user_logout_url %>
<% else %>
-
<%= t('login_description') %>
-
<%= link_to t('login'), '/users/login' %>
+
<%= t('login_description') %>
+
<%= link_to t('login'), '/users/login' %>
<% end %>