From 8f04967b283cf11d54e8f9797e199cdf818c574b Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Fri, 3 Feb 2017 14:26:10 -0500 Subject: [PATCH] select randomized title from pool on root page --- app/views/landing/index.html.erb | 2 +- app/views/landing/rooms.html.erb | 6 ------ config/locales/en-us.yml | 8 ++++++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/views/landing/index.html.erb b/app/views/landing/index.html.erb index 126a4493..a2fb186f 100644 --- a/app/views/landing/index.html.erb +++ b/app/views/landing/index.html.erb @@ -15,7 +15,7 @@ with BigBlueButton; if not, see . <% content_for :title do %>
-

<%= t('home_title') %>

+

<%= t('landing_titles').values[rand(t('landing_titles').size)] %>

<% end %> diff --git a/app/views/landing/rooms.html.erb b/app/views/landing/rooms.html.erb index 44dfcc04..27624700 100644 --- a/app/views/landing/rooms.html.erb +++ b/app/views/landing/rooms.html.erb @@ -13,12 +13,6 @@ You should have received a copy of the GNU Lesser General Public License along with BigBlueButton; if not, see . --> -<% if current_user %> - <% page_title = t('greet_user', name: current_user.name) %> -<% else %> - <% page_title= t('greet_guest', name: @user.username) %> -<% end %> -
diff --git a/config/locales/en-us.yml b/config/locales/en-us.yml index dc809fb0..8b04258a 100644 --- a/config/locales/en-us.yml +++ b/config/locales/en-us.yml @@ -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