From c9137cfa590a73e32eef4e87d6d3b23e8e02f2c8 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 12 Jan 2017 13:01:05 -0800 Subject: update ui for admin addons page to have more data --- system/admin/handlers.go | 23 +++++++++++++++++------ system/admin/static/dashboard/css/admin.css | 12 ++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) (limited to 'system/admin') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 5d71262..707814a 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -2260,6 +2260,9 @@ func adminAddonListItem(data []byte) []byte { id := gjson.GetBytes(data, "addon_reverse_dns").String() status := gjson.GetBytes(data, "addon_status").String() name := gjson.GetBytes(data, "addon_name").String() + author := gjson.GetBytes(data, "addon_author").String() + authorURL := gjson.GetBytes(data, "addon_author_url").String() + version := gjson.GetBytes(data, "addon_version").String() var action string var buttonClass string @@ -2273,13 +2276,21 @@ func adminAddonListItem(data []byte) []byte { a := `
  • - ` + name + ` +
    +
    + ` + name + ` + by: ` + author + ` + version: ` + version + ` +
    -
    - - - -
    +
    +
    + + + +
    +
    +
  • ` return []byte(a) diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css index f986fbe..a977afb 100644 --- a/system/admin/static/dashboard/css/admin.css +++ b/system/admin/static/dashboard/css/admin.css @@ -196,6 +196,18 @@ tr.default-fields, tr.editor-fields { margin-bottom: 20px; } +.addon-meta a { + color: #7e7e7e; + text-decoration: underline; + font-style: italic; +} + +.addon-meta { + display: block; + color: #9e9e9e; + font-size: 12px; +} + /* OVERRIDE Bootstrap + Materialize conflicts */ .iso-texteditor.input-field label { color: #9e9e9e; -- cgit v1.2.3