From fa728d8dff2ddb8039efc2767f4fefb2d2f62004 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 10 Sep 2015 15:45:03 -0400 Subject: more minor fix on 1581 --- templates/admin/auth/edit.tmpl | 10 ++-- templates/admin/auth/list.tmpl | 101 ++++++++++++++++++----------------------- 2 files changed, 49 insertions(+), 62 deletions(-) (limited to 'templates/admin/auth') diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 5569ce19..398815c3 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -30,7 +30,7 @@ - {{if eq $type 2 3}} + {{if eq $type 2 5}}
@@ -57,7 +57,7 @@
{{end}} - {{if eq $type 3}} + {{if eq $type 5}}
@@ -85,7 +85,7 @@
- {{else if eq $type 4}} + {{else if eq $type 3}}
- {{else if eq $type 5}} + {{else if eq $type 4}}
@@ -113,7 +113,7 @@ {{end}}
- {{if eq $type 4}} + {{if eq $type 3}} {{.i18n.Tr "admin.auths.enable_tls"}} diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index dcd48353..0b5aed9a 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -1,59 +1,46 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -
-
-
- {{template "admin/nav" .}} -
-
- {{template "ng/base/alert" .}} -
-
-
- {{.i18n.Tr "admin.auths.auth_manage_panel"}} -
-
- {{.i18n.Tr "admin.auths.new"}} -
- - - - - - - - - - - - - - {{range .Sources}} - - - - - - - - - - {{end}} - -
Id{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeString}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
- {{if or .LastPageNum .NextPageNum}} -
    - {{if .LastPageNum}}
  • « Prev.
  • {{end}} - {{if .NextPageNum}}
  • » Next
  • {{end}} -
- {{end}} -
-
-
-
-
-
-
+{{template "base/head" .}} +
+
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) + +

+
+ + + + + + + + + + + + + + {{range .Sources}} + + + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.auths.name"}}{{.i18n.Tr "admin.auths.type"}}{{.i18n.Tr "admin.auths.enabled"}}{{.i18n.Tr "admin.auths.updated"}}{{.i18n.Tr "admin.users.created"}}{{.i18n.Tr "admin.users.edit"}}
{{.ID}}{{.Name}}{{.TypeString}}{{DateFmtShort .Updated}}{{DateFmtShort .Created}}
+
+
+
-{{template "ng/base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3