add link to personal room and logout on every landing page

This commit is contained in:
Zachary Chai
2017-02-03 10:15:25 -05:00
parent c62424ffb6
commit fc7d3fd94e
3 changed files with 11 additions and 13 deletions

View File

@ -22,11 +22,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<% content_for :footer do %>
<div class="panel-footer">
<div class="text-center">
<% if current_user %>
<%= link_to t('return_to_room'), current_user.room_url %>
<% else %>
<%= link_to t('create_your_session'), root_path %>
<% end %>
<%= link_to t('create_your_session'), root_path %>
</div>
</div>
<% end %>

View File

@ -30,10 +30,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<% end %>
</div>
<% if !@main_room %>
<div class="row text-center">
<%= link_to(t('return_to_room'), current_user.room_url) %>
</div>
<% unless @main_room && !current_user %>
<%= render 'shared/signup' %>
<% end %>
<div class="table-wrapper">