diff --git a/app/assets/stylesheets/about_modal_background.scss b/app/assets/stylesheets/about_modal_background.scss index 6daddc5add3..c0a9e95349f 100644 --- a/app/assets/stylesheets/about_modal_background.scss +++ b/app/assets/stylesheets/about_modal_background.scss @@ -11,3 +11,24 @@ background-image: image-url($img-bg-login-whitelabel); background-size: 100% 100%; } + +::-webkit-scrollbar { + width: 10px; +} + +/* Track */ +::-webkit-scrollbar-track { + box-shadow: inset 0 0 10px #f5f5f5; + border-radius: 10px; +} + +/* Handle */ +::-webkit-scrollbar-thumb { + background: #f5f5f5; + border-radius: 10px; +} + +/* Handle on hover */ +::-webkit-scrollbar-thumb:hover { + background: #b305500; +} diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 576102c8bbc..c4415433888 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1361,6 +1361,16 @@ def vmdb_build_info(key) end end + def plugin_name(engine) + start_marker = "ManageIQ::" + end_marker = "::Engine" + engine.to_s[/#{Regexp.escape(start_marker)}(.*?)#{Regexp.escape(end_marker)}/m, 1] + end + + def vmdb_plugins_sha + Vmdb::Plugins.versions + end + def user_role_name User.current_user.miq_user_role_name end diff --git a/app/views/layouts/_about_modal.html.haml b/app/views/layouts/_about_modal.html.haml index 2392ddb4c55..c00216aa404 100644 --- a/app/views/layouts/_about_modal.html.haml +++ b/app/views/layouts/_about_modal.html.haml @@ -20,6 +20,13 @@ %strong = session_info[0] = session_info[1] + %strong + = _("Plugins") + %ul.list-unstyled{:style => "height: 40px;overflow: auto"} + - vmdb_plugins_sha.each do |engine, sha| + %div + = "#{plugin_name(engine)} #{sha}" + .trademark-pf = I18n.t("product.copyright") .modal-footer