From 7828c152866ff7f7341c7208593c7671243ba5a7 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Mon, 8 Jul 2019 09:02:34 -0400 Subject: [PATCH 01/17] GRN2-166: Fixed issue with language fallback not working (Fixed #593) (#602) * Fixed issue with language fallback not working * Rubocop fixes --- app/views/rooms/show.html.erb | 3 ++- app/views/shared/components/_room_block.html.erb | 6 +++++- config/application.rb | 4 ---- config/environments/production.rb | 4 ---- config/initializers/languages.rb | 7 +++++++ 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/views/rooms/show.html.erb b/app/views/rooms/show.html.erb index e9b76d47..83aa968d 100644 --- a/app/views/rooms/show.html.erb +++ b/app/views/rooms/show.html.erb @@ -18,10 +18,11 @@
- <%= t('mailer.user.invite.signup') %> + <%= t('mailer.user.invite.signup_info') %>
diff --git a/app/views/user_mailer/invite_email.text.erb b/app/views/user_mailer/invite_email.text.erb index 991ec71d..0cef70c2 100644 --- a/app/views/user_mailer/invite_email.text.erb +++ b/app/views/user_mailer/invite_email.text.erb @@ -22,6 +22,6 @@ <%= t('mailer.user.invite.username', email: @email) %> -<%= t('mailer.user.invite.signup') %> +<%= t('mailer.user.invite.signup_info') %> <%= @url %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0a38ef1f..6ef81da9 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -202,7 +202,7 @@ en: subtitle: Administrator Rights Rescinded invite: info: You have been invited to your own personal space by %{name} - signup: To signup using your email, click the button below and follow the steps. + signup_info: To signup using your email, click the button below and follow the steps. signup_link: Sign Up signup: info: A user that was invited has signed up to use Greenlight. From cb2587a6c695e8b6e0beaf918d8981ac36e79026 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Mon, 8 Jul 2019 09:07:24 -0400 Subject: [PATCH 03/17] Added the missing model attribute strings (#604) --- config/locales/en.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 6ef81da9..f0eb5539 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -21,6 +21,14 @@ en: attributes: user: accepted_terms: "Terms and Conditions" + email: Email + name: Name + password: Password + password_confirmation: Password Confirmation + errors: + models: + user: + confirmation: doesn't match Password administrator: site_settings: authentication: @@ -68,6 +76,8 @@ en: edit: title: Edit User Details settings: + approve: Approve + decline: Decline ban: Ban User delete: Delete demote: Demote to User From f6bd959c4cca11ba6ef0b225d340393d81726dc9 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Mon, 8 Jul 2019 09:08:39 -0400 Subject: [PATCH 04/17] GRN2-135: Limit Jquery version in Gemfile (#610) * Limit Jquery version in Gemfile * Fixed issue with lock file --- Gemfile | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 9c89ebf4..1dfe1cd1 100644 --- a/Gemfile +++ b/Gemfile @@ -26,7 +26,7 @@ gem 'coffee-rails', '~> 4.2' gem 'mini_racer', platforms: :ruby # Use jquery as the JavaScript library -gem 'jquery-rails' +gem 'jquery-rails', '~> 4.3.3' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' diff --git a/Gemfile.lock b/Gemfile.lock index 322fc1cf..71ccf81e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -334,7 +334,7 @@ DEPENDENCIES health_check http_accept_language jbuilder (~> 2.5) - jquery-rails + jquery-rails (~> 4.3.3) listen (~> 3.0.5) mini_racer omniauth From 315bb1af1cf69491c876d543a39fdee2701bb8d9 Mon Sep 17 00:00:00 2001 From: farhatahmad <35435341+farhatahmad@users.noreply.github.com> Date: Mon, 8 Jul 2019 09:12:46 -0400 Subject: [PATCH 05/17] Added a max-width to the email column in the manage users table (#611) --- app/assets/stylesheets/admins.scss | 4 ++++ app/views/shared/admin_settings/_users.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/admins.scss b/app/assets/stylesheets/admins.scss index 56dbb86f..0a5542ff 100644 --- a/app/assets/stylesheets/admins.scss +++ b/app/assets/stylesheets/admins.scss @@ -18,6 +18,10 @@ .user-role { color: white !important; } + + .user-email { + max-width: 250px; + } } #clear-search { diff --git a/app/views/shared/admin_settings/_users.html.erb b/app/views/shared/admin_settings/_users.html.erb index f0ce668c..df8422fa 100644 --- a/app/views/shared/admin_settings/_users.html.erb +++ b/app/views/shared/admin_settings/_users.html.erb @@ -21,7 +21,7 @@