From f3ed11d177d76bcb1850c6670c1516d25a66eb2c Mon Sep 17 00:00:00 2001 From: zhsso Date: Thu, 10 Apr 2014 14:20:01 -0400 Subject: mistakes --- templates/admin/config.tmpl | 179 ---------------------------------------- templates/admin/dashboard.tmpl | 115 -------------------------- templates/admin/nav.tmpl | 8 -- templates/admin/repos.tmpl | 42 ---------- templates/admin/users.tmpl | 45 ---------- templates/admin/users/edit.tmpl | 84 ------------------- templates/admin/users/new.tmpl | 55 ------------ 7 files changed, 528 deletions(-) delete mode 100644 templates/admin/config.tmpl delete mode 100644 templates/admin/dashboard.tmpl delete mode 100644 templates/admin/nav.tmpl delete mode 100644 templates/admin/repos.tmpl delete mode 100644 templates/admin/users.tmpl delete mode 100644 templates/admin/users/edit.tmpl delete mode 100644 templates/admin/users/new.tmpl (limited to 'templates/admin') diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl deleted file mode 100644 index 31cfb77b..00000000 --- a/templates/admin/config.tmpl +++ /dev/null @@ -1,179 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- Server Configuration -
- -
-
-
Application Name
-
{{AppName}}
-
Application Version
-
{{AppVer}}
-
Application URL
-
{{.AppUrl}}
-
Domain
-
{{.Domain}}
-
-
Run User
-
{{.RunUser}}
-
Run Mode
-
{{.RunMode}}
-
-
Repository Root Path
-
{{.RepoRootPath}}
-
-
-
- -
-
- Database Configuration -
- -
-
-
Type
-
{{.DbCfg.Type}}
-
Host
-
{{.DbCfg.Host}}
-
Name
-
{{.DbCfg.Name}}
-
User
-
{{.DbCfg.User}}
-
SslMode
-
{{.DbCfg.SslMode}} (for "postgres" only)
-
Path
-
{{.DbCfg.Path}} (for "sqlite3" only)
-
-
-
- -
-
- Service Configuration -
- -
-
-
Register Email Confirmation
-
-
Disenable Registeration
-
-
Require Sign In View
-
-
Mail Notification
-
-
Enable Cache Avatar
-
-
-
Active Code Lives
-
{{.Service.ActiveCodeLives}} minutes
-
Reset Password Code Lives
-
{{.Service.ResetPwdCodeLives}} minutes
-
-
-
- -
-
- Mailer Configuration -
- -
-
-
Enabled
-
-
Name
-
{{.Mailer.Name}}
-
Host
-
{{.Mailer.Host}}
-
User
-
{{.Mailer.User}}
-
-
-
- -
-
- Cache Configuration -
- -
-
-
Cache Adapter
-
{{.CacheAdapter}}
-
Cache Config
-
{{.CacheConfig}}
-
-
-
- -
-
- Session Configuration -
- -
-
-
Session Provider
-
{{.SessionProvider}}
-
Cookie Name
-
{{.SessionConfig.CookieName}}
-
Enable Set Cookie
-
-
GC Interval Time
-
{{.SessionConfig.GcIntervalTime}} seconds
-
Session Life Time
-
{{.SessionConfig.SessionLifeTime}} seconds
-
HTTPS Only
-
-
Cookie Life Time
-
{{.SessionConfig.CookieLifeTime}} seconds
-
Session ID Hash Function
-
{{.SessionConfig.SessionIDHashFunc}}
-
Session ID Hash Key
-
{{.SessionConfig.SessionIDHashKey}}
-
Provider Config
-
{{.SessionConfig.ProviderConfig}}
-
-
-
- -
-
- Picture Configuration -
- -
-
-
Picture Service
-
{{.PictureService}}
-
-
-
- -
-
- Log Configuration -
- -
-
-
Log Mode
-
{{.LogMode}}
-
Log Config
-
-
{{.LogConfig}}
-
-
- -
-
-
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl deleted file mode 100644 index 2334c676..00000000 --- a/templates/admin/dashboard.tmpl +++ /dev/null @@ -1,115 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- Statistic -
- -
- Gogs database has {{.Stats.Counter.User}} users, {{.Stats.Counter.PublicKey}} SSH keys, {{.Stats.Counter.Repo}} repositories, {{.Stats.Counter.Watch}} watches, {{.Stats.Counter.Action}} actions, and {{.Stats.Counter.Access}} accesses. -
-
- -
-
- System Monitor Status -
- -
-
-
Server Uptime
-
{{.SysStatus.Uptime}}
- -
Current Goroutines
-
{{.SysStatus.NumGoroutine}}
- -
-
Current Memory Usage
-
{{.SysStatus.MemAllocated}}
- -
Total Memory Allocated
-
{{.SysStatus.MemTotal}}
- -
Memory Obtained
-
{{.SysStatus.MemSys}}
- -
Pointer Lookup Times
-
{{.SysStatus.Lookups}}
- -
Memory Allocate Times
-
{{.SysStatus.MemMallocs}}
- -
Memory Free Times
-
{{.SysStatus.MemFrees}}
- -
-
Current Heap Usage
-
{{.SysStatus.HeapAlloc}}
- -
Heap Memory Obtained
-
{{.SysStatus.HeapSys}}
- -
Heap Memory Idle
-
{{.SysStatus.HeapIdle}}
- -
Heap Memory In Use
-
{{.SysStatus.HeapInuse}}
- -
Heap Memory Released
-
{{.SysStatus.HeapReleased}}
- -
Heap Objects
-
{{.SysStatus.HeapObjects}}
- -
-
Bootstrap Stack Usage
-
{{.SysStatus.StackInuse}}
- -
Stack Memory Obtained
-
{{.SysStatus.StackSys}}
- -
MSpan Structures Usage
-
{{.SysStatus.MSpanInuse}}
- -
MSpan Structures Obtained
-
{{.SysStatus.HeapSys}}
- -
MCache Structures Usage
-
{{.SysStatus.MCacheInuse}}
- -
MCache Structures Obtained
-
{{.SysStatus.MCacheSys}}
- -
Profiling Bucket Hash Table Obtained
-
{{.SysStatus.BuckHashSys}}
- -
GC Metadada Obtained
-
{{.SysStatus.GCSys}}
- -
Other System Allocation Obtained
-
{{.SysStatus.OtherSys}}
- -
-
Next GC Recycle
-
{{.SysStatus.NextGC}}
- -
Last GC Time
-
{{.SysStatus.LastGC}} ago
- -
Total GC Pause
-
{{.SysStatus.PauseTotalNs}}
- -
Last GC Pause
-
{{.SysStatus.PauseNs}}
- -
GC Times
-
{{.SysStatus.NumGC}}
-
-
-
-
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/nav.tmpl b/templates/admin/nav.tmpl deleted file mode 100644 index 33ecfae5..00000000 --- a/templates/admin/nav.tmpl +++ /dev/null @@ -1,8 +0,0 @@ -
- -
\ No newline at end of file diff --git a/templates/admin/repos.tmpl b/templates/admin/repos.tmpl deleted file mode 100644 index 3c0f5e09..00000000 --- a/templates/admin/repos.tmpl +++ /dev/null @@ -1,42 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- Repository Management -
- -
- - - - - - - - - - - - - - {{range .Repos}} - - - - - - - - - - {{end}} - -
IdOwnerNamePrivateWatchesForksCreated
{{.Id}}{{.UserName}}{{.Name}}{{.NumWatches}}{{.NumForks}}{{DateFormat .Created "M d, Y"}}
-
-
-
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/users.tmpl b/templates/admin/users.tmpl deleted file mode 100644 index 14fddf33..00000000 --- a/templates/admin/users.tmpl +++ /dev/null @@ -1,45 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- User Management -
- -
- New Account - - - - - - - - - - - - - - - {{range .Users}} - - - - - - - - - - - {{end}} - -
IdNameE-mailActivedAdminReposJoinEdit
{{.Id}}{{.Name}}{{.Email}}{{.NumRepos}}{{DateFormat .Created "M d, Y"}}
-
-
-
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/users/edit.tmpl b/templates/admin/users/edit.tmpl deleted file mode 100644 index 5db2c7a9..00000000 --- a/templates/admin/users/edit.tmpl +++ /dev/null @@ -1,84 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- Edit Account -
- -
-
-
- {{if .IsSuccess}}

Account profile has been successfully updated.

{{else if .HasError}}

{{.ErrorMsg}}

{{end}} - {{.CsrfTokenHtml}} - -
- - -
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
- - Delete this account -
-
-
-
-
- -
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/admin/users/new.tmpl b/templates/admin/users/new.tmpl deleted file mode 100644 index 7f441f32..00000000 --- a/templates/admin/users/new.tmpl +++ /dev/null @@ -1,55 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
- {{template "admin/nav" .}} -
-
-
- New Account -
- -
-
-
- {{.CsrfTokenHtml}} -
{{.ErrorMsg}}
-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3