mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
UX: show plugin descriptions on admin plugins page
This commit is contained in:
parent
74ca5ec743
commit
cc0d2b623f
@ -23,11 +23,16 @@
|
||||
</td>
|
||||
|
||||
<td class="plugin-name">
|
||||
{{#if plugin.url}}
|
||||
<a href={{plugin.url}} rel="noopener noreferrer" target="_blank">{{plugin.name}}</a>
|
||||
{{else}}
|
||||
{{plugin.name}}
|
||||
{{/if}}
|
||||
<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>
|
||||
|
@ -6,6 +6,11 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
td.plugin-name {
|
||||
.name {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.grid {
|
||||
@media screen and (min-width: 550px) {
|
||||
tr {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user