select randomized title from pool on root page

This commit is contained in:
Zachary Chai
2017-02-03 14:26:10 -05:00
parent 4a90de057c
commit 8f04967b28
3 changed files with 7 additions and 9 deletions

View File

@ -15,7 +15,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<% content_for :title do %>
<div class="title">
<h2><%= t('home_title') %></h2>
<h2><%= t('landing_titles').values[rand(t('landing_titles').size)] %></h2>
</div>
<% end %>

View File

@ -13,12 +13,6 @@ You should have received a copy of the GNU Lesser General Public License along
with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
-->
<% if current_user %>
<% page_title = t('greet_user', name: current_user.name) %>
<% else %>
<% page_title= t('greet_guest', name: @user.username) %>
<% end %>
<div class="page-wrapper rooms" data-main-room="<%= @main_room %>" data-id="<%= @meeting_id %>" data-admin-id="<%= @user.encrypted_id %>">
<div class="container-fluid">