From 6637983d4e83dbd3fbedc19ca323da6db095e222 Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Thu, 16 Feb 2017 17:17:55 -0500 Subject: [PATCH] add help link to center panel --- app/assets/stylesheets/main/shared.scss | 11 +++++++++++ app/views/shared/_center_panel.html.erb | 3 +++ config/locales/en-us.yml | 1 + config/routes.rb | 2 +- test/controllers/help_controller_test.rb | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/main/shared.scss b/app/assets/stylesheets/main/shared.scss index 0febf358..73486b80 100644 --- a/app/assets/stylesheets/main/shared.scss +++ b/app/assets/stylesheets/main/shared.scss @@ -79,6 +79,10 @@ body[data-controller=landing].app-background { max-width: 1100px; } + .panel { + position: relative; + } + .input-spacing { margin-top: 15px; } @@ -173,3 +177,10 @@ a.signin-link { .invite-join-wrapper { position: relative; } + +.help-link { + position: absolute; + top: 0; + right: 0; + padding-right: 3px; +} diff --git a/app/views/shared/_center_panel.html.erb b/app/views/shared/_center_panel.html.erb index 2348a252..58963960 100644 --- a/app/views/shared/_center_panel.html.erb +++ b/app/views/shared/_center_panel.html.erb @@ -24,6 +24,9 @@ <%= yield %> <%= yield :footer %> + diff --git a/config/locales/en-us.yml b/config/locales/en-us.yml index 5af5c874..fb58117e 100644 --- a/config/locales/en-us.yml +++ b/config/locales/en-us.yml @@ -76,6 +76,7 @@ en-US: setting_up_audio: Setting Up Audio viewer_overview: Viewer Overview presenter_overview: Moderator/Presenter Overview + help: Help hi_all: Hi Everyone home_title: Welcome to BigBlueButton invite: Invite diff --git a/config/routes.rb b/config/routes.rb index 1ee0f760..002f365d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,7 +16,7 @@ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html Rails.application.routes.draw do - get 'help/getting_started' + get 'help/getting_started', as: :help mount ActionCable.server => '/cable' diff --git a/test/controllers/help_controller_test.rb b/test/controllers/help_controller_test.rb index e956ee24..4ea75abd 100644 --- a/test/controllers/help_controller_test.rb +++ b/test/controllers/help_controller_test.rb @@ -2,7 +2,7 @@ require 'test_helper' class HelpControllerTest < ActionDispatch::IntegrationTest test "should get getting_started" do - get help_getting_started_url + get help_url assert_response :success end