summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-15 09:38:06 -0700
committerSteve Manuel <nilslice@gmail.com>2017-05-15 09:38:06 -0700
commitc6a38a5178ab8661240c16983c9e1dcd08571abc (patch)
treef2003934e6c3b3ac2a7cf522e34d4afdfa069b62 /system/admin/handlers.go
parent5cf617fb2853004accbf40f5b2fd93f3ced4949a (diff)
fixing UI
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go6
1 files changed, 2 insertions, 4 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 {