From cc0d2b623fa603d748d11fcd21722cdb0eab6078 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 12 Feb 2021 11:19:07 -0500 Subject: [PATCH] UX: show plugin descriptions on admin plugins page --- .../admin/addon/templates/plugins-index.hbs | 15 ++++++++++----- app/assets/stylesheets/common/admin/plugins.scss | 5 +++++ app/serializers/admin_plugin_serializer.rb | 5 +++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/admin/addon/templates/plugins-index.hbs b/app/assets/javascripts/admin/addon/templates/plugins-index.hbs index 072f7d2141d..d5465402500 100644 --- a/app/assets/javascripts/admin/addon/templates/plugins-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/plugins-index.hbs @@ -23,11 +23,16 @@ - {{#if plugin.url}} - {{plugin.name}} - {{else}} - {{plugin.name}} - {{/if}} +
+ {{#if plugin.url}} + {{plugin.name}} + {{else}} + {{plugin.name}} + {{/if}} +
+
+ {{plugin.about}} +
{{i18n "admin.plugins.version"}}
diff --git a/app/assets/stylesheets/common/admin/plugins.scss b/app/assets/stylesheets/common/admin/plugins.scss index caf25e2b6b7..8a0061b5852 100644 --- a/app/assets/stylesheets/common/admin/plugins.scss +++ b/app/assets/stylesheets/common/admin/plugins.scss @@ -6,6 +6,11 @@ margin-left: auto; } } + td.plugin-name { + .name { + font-weight: bold; + } + } .grid { @media screen and (min-width: 550px) { tr { diff --git a/app/serializers/admin_plugin_serializer.rb b/app/serializers/admin_plugin_serializer.rb index 809773c854a..75a0771612c 100644 --- a/app/serializers/admin_plugin_serializer.rb +++ b/app/serializers/admin_plugin_serializer.rb @@ -3,6 +3,7 @@ class AdminPluginSerializer < ApplicationSerializer attributes :id, :name, + :about, :version, :url, :admin_route, @@ -19,6 +20,10 @@ class AdminPluginSerializer < ApplicationSerializer object.metadata.name end + def about + object.metadata.about + end + def version object.metadata.version end