From 14a11011390000cc21d134c3e612dda0fb9f490c Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Fri, 25 Sep 2015 18:13:38 +0200 Subject: New admin notice UI based on user list example --- templates/admin/notice.tmpl | 114 ++++++++++++++++++++++++-------------------- 1 file changed, 62 insertions(+), 52 deletions(-) (limited to 'templates/admin/notice.tmpl') diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index a3ae2a10dd..d32b4c9814 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -1,54 +1,64 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -
-
-
- {{template "admin/nav" .}} -
-
- {{template "ng/base/alert" .}} -
-
-
- {{.i18n.Tr "admin.notices.system_notice_list"}} -
-
-
- - - - - - - - - - - - {{range .Notices}} - - - - - - - - {{end}} - -
Id{{.i18n.Tr "admin.notices.type"}}{{.i18n.Tr "admin.notices.desc"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.notices.op"}}
{{.Id}}{{$.i18n.Tr .TrStr}}{{.Description}}{{.Created}}
- {{if or .LastPageNum .NextPageNum}} - - {{end}} -
-
-
-
-
-
-
+{{template "base/head" .}} +
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.notices.system_notice_list"}} +

+
+ + + + + + + + + + + + {{range .Notices}} + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.notices.type"}}{{.i18n.Tr "admin.notices.desc"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.notices.op"}}
{{.Id}}{{$.i18n.Tr .TrStr}}{{.Description}}{{.Created}}
+
+ + {{with .Page}} + {{if gt .TotalPages 1}} + + {{end}} + {{end}} + +
+
-{{template "ng/base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} -- cgit v1.2.3