diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 8e7a50de..53292afe 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -14,26 +14,6 @@ // You should have received a copy of the GNU Lesser General Public License along // with BigBlueButton; if not, see . -// Handle changing of settings tabs. -$(document).on('turbolinks:load', function(){ - var controller = $("body").data('controller'); - var action = $("body").data('action'); - - - // Only run on the main page. - if (controller == "main" && action == "index"){ - var cycleImages = function(){ - var images = $('.img-cycle img'); - var now = images.filter(':visible'); - var next = now.next().length ? now.next() : images.first(); - var speed = 1500; - - now.fadeOut(speed); - next.fadeIn(speed); - } - - $(function() { - setInterval(cycleImages, 5000); - }); - } -}); +document.addEventListener("turbolinks:before-cache", function() { + $(".alert").remove() +}) \ No newline at end of file diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb index 77450608..099cd50e 100644 --- a/app/helpers/sessions_helper.rb +++ b/app/helpers/sessions_helper.rb @@ -127,6 +127,8 @@ module SessionsHelper old_user.destroy! session["old_twitter_user_id"] = nil + + flash[:success] = I18n.t("registration.deprecated.merge_success") end end end diff --git a/app/views/admins/index.html.erb b/app/views/admins/index.html.erb index f52a799d..1903f14c 100644 --- a/app/views/admins/index.html.erb +++ b/app/views/admins/index.html.erb @@ -13,10 +13,6 @@ # with BigBlueButton; if not, see . %> -<% # Only load the color picker on the Admins page %> -<%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/monolith.min.css" %> -<%= javascript_include_tag "https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js" %> -
<%= render "shared/components/subtitle", subtitle: t("administrator.title"), search: false %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 22e83755..0d11480a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -33,6 +33,11 @@ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/monolith.min.css" %> + <%= javascript_include_tag "https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js" %> + <%= stylesheet_link_tag themes_primary_path %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 9082984e..780d3407 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -337,6 +337,7 @@ en: new_signin: Select a new login method for you account. All your rooms from your old account will be migrated to the new account twitter_signin: Signing in via Twitter has been deprecated and will be removed in the next release. Click here to move your account to a new authentication method twitter_signup: Sign up via Twitter has been deprecated. Please use a different sign up method + merge_success: Successfuly merged your twitter account with your new account. Your old twitter account has been deleted invite: fail: Your token is either invalid or has expired. If you believe this is a mistake, please contact your administrator. no_invite: You do not have an invitation to join. Please contact your administrator to receive one.