UX: show plugin descriptions on admin plugins page

This commit is contained in:
Neil Lalonde 2021-02-12 11:19:07 -05:00
parent 74ca5ec743
commit cc0d2b623f
3 changed files with 20 additions and 5 deletions

View File

@ -23,11 +23,16 @@
</td>
<td class="plugin-name">
<div class="name">
{{#if plugin.url}}
<a href={{plugin.url}} rel="noopener noreferrer" target="_blank">{{plugin.name}}</a>
{{else}}
{{plugin.name}}
{{/if}}
</div>
<div class="about">
{{plugin.about}}
</div>
</td>
<td class="version">
<div class="label">{{i18n "admin.plugins.version"}}</div>

View File

@ -6,6 +6,11 @@
margin-left: auto;
}
}
td.plugin-name {
.name {
font-weight: bold;
}
}
.grid {
@media screen and (min-width: 550px) {
tr {

View File

@ -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