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">

View File

@ -69,8 +69,6 @@ en-US:
enter_name: Enter your name
enter_meeting_name: Enter a meeting name to start
footer_html: Powered by %{bbb_link}
greet_user: Welcome, %{name}
greet_guest: Welcome to %{name} Meeting Space
hi_all: Hi Everyone
home_title: Welcome to BigBlueButton
invite: Invite
@ -80,6 +78,12 @@ en-US:
login: login
login_description: Want to record a meeting?
logout: logout
landing_titles:
start_meeting: Start your own meeting
get_work_down: Let's get some work done
connect: Connect in real-time with others
collaborate: Collaborate with friends
teach: Teach students online
meeting: Meeting
meeting_invite:
explanation: Send an email with an invitation to this meeting