From 21e13cb51e73471d186b963e26404f89abd81fce Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 25 Sep 2015 19:45:44 -0400 Subject: #1525 Triggere mailer for admin created accounts --- templates/admin/notice.tmpl | 65 ++++++++++----------- templates/admin/org/list.tmpl | 113 ++++++++++++++++++------------------ templates/admin/repo/list.tmpl | 129 ++++++++++++++++++++--------------------- templates/admin/user/new.tmpl | 10 ++++ 4 files changed, 161 insertions(+), 156 deletions(-) (limited to 'templates/admin') diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index 46c6ff3dde..a7af39aff1 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -20,43 +20,42 @@ - {{range .Notices}} - - {{.Id}} - {{$.i18n.Tr .TrStr}} - {{.Description}} - {{.Created}} - - - {{end}} + {{range .Notices}} + + {{.Id}} + {{$.i18n.Tr .TrStr}} + {{.Description}} + {{.Created}} + + + {{end}} - - - {{with .Page}} - {{if gt .TotalPages 1}} -
- -
- {{end}} - {{end}} + {{with .Page}} + {{if gt .TotalPages 1}} +
+ +
+ {{end}} + {{end}} diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 1ca61dd5c2..4070b46ec0 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -2,65 +2,62 @@
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) -

-
- - - - - - - - - - - - - - {{range .Orgs}} - - - - - - - - - - {{end}} - -
ID{{.i18n.Tr "admin.orgs.name"}}{{.i18n.Tr "email"}}{{.i18n.Tr "admin.orgs.teams"}}{{.i18n.Tr "admin.orgs.members"}}{{.i18n.Tr "admin.users.repos"}}{{.i18n.Tr "admin.users.created"}}
{{.Id}}{{.Name}}{{.Email}}{{.NumTeams}}{{.NumMembers}}{{.NumRepos}}{{DateFmtShort .Created}}
-
- - {{with .Page}} - {{if gt .TotalPages 1}} - - {{end}} - {{end}} + {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) +

+
+ + + + + + + + + + + + + {{range .Orgs}} + + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.orgs.name"}}{{.i18n.Tr "admin.orgs.teams"}}{{.i18n.Tr "admin.orgs.members"}}{{.i18n.Tr "admin.users.repos"}}{{.i18n.Tr "admin.users.created"}}
{{.Id}}{{.Name}}{{.NumTeams}}{{.NumMembers}}{{.NumRepos}}{{DateFmtShort .Created}}
+
+ {{with .Page}} + {{if gt .TotalPages 1}} + + {{end}} + {{end}}
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index e350ad8f86..84046c4ed4 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -1,70 +1,69 @@ {{template "base/head" .}}
-
-
- {{template "admin/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) -

-
- - - - - - - - - - - - - - - {{range .Repos}} - - - - - - - - - - - {{end}} - -
ID{{.i18n.Tr "admin.repos.owner"}}{{.i18n.Tr "admin.repos.name"}}{{.i18n.Tr "admin.repos.private"}}{{.i18n.Tr "admin.repos.watches"}}{{.i18n.Tr "admin.repos.stars"}}{{.i18n.Tr "admin.repos.issues"}}{{.i18n.Tr "admin.users.created"}}
{{.ID}}{{.Owner.Name}}{{.Name}}{{.NumWatches}}{{.NumStars}}{{.NumIssues}}{{DateFmtShort .Created}}
-
- - {{with .Page}} - {{if gt .TotalPages 1}} - - {{end}} - {{end}} +
+
+ {{template "admin/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}}) +

+
+ + + + + + + + + + + + + + + {{range .Repos}} + + + + + + + + + + + {{end}} + +
ID{{.i18n.Tr "admin.repos.owner"}}{{.i18n.Tr "admin.repos.name"}}{{.i18n.Tr "admin.repos.private"}}{{.i18n.Tr "admin.repos.watches"}}{{.i18n.Tr "admin.repos.stars"}}{{.i18n.Tr "admin.repos.issues"}}{{.i18n.Tr "admin.users.created"}}
{{.ID}}{{.Owner.Name}}{{.Name}}{{.NumWatches}}{{.NumStars}}{{.NumIssues}}{{DateFmtShort .Created}}
+
-
-
-
+ {{with .Page}} + {{if gt .TotalPages 1}} + + {{end}} + {{end}} +
+
+
{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl index 7272343818..34630ececa 100644 --- a/templates/admin/user/new.tmpl +++ b/templates/admin/user/new.tmpl @@ -44,6 +44,16 @@
+ + {{if .CanSendEmail}} +
+
+ + +
+
+ {{end}} +
-- cgit v1.2.3