aboutsummaryrefslogtreecommitdiff
path: root/templates/admin
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-19 17:25:50 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-19 17:32:56 +0800
commitea75f01ba2e8ba97d3ca101db3a844c76c49d737 (patch)
tree5a724201264c73339d3c0813db25776220d0e8d9 /templates/admin
parent3a2b2de8141b5843892e64f9c165c1d7afb3724a (diff)
admin: show all version in dashboard
And removed version info from footer.
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/config.tmpl4
-rw-r--r--templates/admin/dashboard.tmpl25
2 files changed, 25 insertions, 4 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index e7f7c3a0..4d90172c 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -12,8 +12,6 @@
<dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.app_name"}}</dt>
<dd>{{AppName}}</dd>
- <dt>{{.i18n.Tr "admin.config.app_ver"}}</dt>
- <dd>{{AppVer}}</dd>
<dt>{{.i18n.Tr "admin.config.app_url"}}</dt>
<dd>{{.AppURL}}</dd>
<dt>{{.i18n.Tr "admin.config.domain"}}</dt>
@@ -267,8 +265,6 @@
</h4>
<div class="ui attached table segment">
<dl class="dl-horizontal admin-dl-horizontal">
- <dt>{{.i18n.Tr "admin.config.git_version"}}</dt>
- <dd>{{.GitVersion}}</dd>
<dt>{{.i18n.Tr "admin.config.git_disable_diff_highlight"}}</dt>
<dd><i class="fa fa{{if .Git.DisableDiffHighlight}}-check{{end}}-square-o"></i></dd>
<dt>{{.i18n.Tr "admin.config.git_max_diff_lines"}}</dt>
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index 968ed78c..49bc3609 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -6,6 +6,30 @@
<div class="twelve wide column content">
{{template "base/alert" .}}
<h4 class="ui top attached header">
+ {{.i18n.Tr "admin.dashboard.build_info"}}
+ </h4>
+ <div class="ui attached table segment">
+ <dl class="dl-horizontal admin-dl-horizontal">
+ <dt>{{.i18n.Tr "admin.dashboard.app_ver"}}</dt>
+ <dd>{{AppVer}}</dd>
+ <dt>{{.i18n.Tr "admin.dashboard.git_version"}}</dt>
+ <dd>{{.GitVersion}}</dd>
+ <dt>{{.i18n.Tr "admin.dashboard.go_version"}}</dt>
+ <dd>{{.GoVersion}}</dd>
+ <dt>{{.i18n.Tr "admin.dashboard.build_time"}}</dt>
+ <dd>{{.BuildTime}}</dd>
+ <dt>{{.i18n.Tr "admin.dashboard.build_commit"}}</dt>
+ <dd>
+ {{if .BuildCommit}}
+ <a target="_blank" href="https://github.com/gogs/gogs/commit/{{.BuildCommit}}">{{.BuildCommit}} <i class="fa fa-external-link" aria-hidden="true"></i></a>
+ {{else}}
+ N/A
+ {{end}}
+ </dd>
+ </dl>
+ </div>
+
+ <h4 class="ui top attached header">
{{.i18n.Tr "admin.dashboard.statistic"}}
</h4>
<div class="ui attached segment">
@@ -13,6 +37,7 @@
{{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2HTML}}
</p>
</div>
+
<h4 class="ui top attached header">
{{.i18n.Tr "admin.dashboard.operations"}}
</h4>