Prechádzať zdrojové kódy

Added Versions to Dash

Yoginth 7 rokov pred
rodič
commit
b2225e7f77
2 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 1 0
      routes/admin/admin.go
  2. 5 0
      templates/admin/dashboard.tmpl

+ 1 - 0
routes/admin/admin.go

@@ -170,6 +170,7 @@ func Dashboard(c *context.Context) {
 	// FIXME: update periodically
 	updateSystemStatus()
 	c.Data["SysStatus"] = sysStatus
+	c.Data["GitVersion"] = setting.Git.Version
 	c.HTML(200, DASHBOARD)
 }
 

+ 5 - 0
templates/admin/dashboard.tmpl

@@ -14,6 +14,11 @@
 						<br/>
 						Gitote:(API) - <a href="{{AppURL}}api/{{APIVer}}/users/gitote">{{APIVer}}</a>
 						<br/>
+						Git - <a href="https://git-scm.com">{{.GitVersion}}</a>
+						<br/>
+						GoLang - <a href="https://golang.org">{{GoVer}}</a>
+						<br/>
+						PostgreSQL - <a href="https://www.postgresql.org">{{"9.8.0"}}</a>
 					</h3>
 				</div>
 				<h4 class="ui top attached header">