diff options
-rw-r--r-- | system/admin/handlers.go | 6 | ||||
-rw-r--r-- | system/admin/static/dashboard/css/admin.css | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 2d8b814..0459b4f 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -1497,18 +1497,16 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) { <a href="/admin/edit?type=` + t + `" class="btn new-post waves-effect waves-light"> New ` + t + ` </a>` - html = html + b.String() + btn if _, ok := pt.(format.CSVFormattable); ok { - btn = `<br/> + btn += `<br/> <a href="/admin/contents/export?type=` + t + `&format=csv" class="green darken-4 btn export-post waves-effect waves-light"> <i class="material-icons left">system_update_alt</i> .CSV </a>` - html = html + b.String() + btn } - html += `</div></div>` + script + html += b.String() + script + btn + `</div></div>` adminView, err := Admin([]byte(html)) if err != nil { diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css index 06df137..45ca5d8 100644 --- a/system/admin/static/dashboard/css/admin.css +++ b/system/admin/static/dashboard/css/admin.css @@ -81,7 +81,7 @@ li a:hover { transition: color 0.3s ease; } -a.new-post { +a.new-post, a.export-post { margin: 0.5rem 0 1rem 0.75rem; } |