diff options
author | Jonas <cez81@users.noreply.github.com> | 2017-04-11 15:30:15 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-04-11 21:30:15 +0800 |
commit | be6edaddcba1e607884539a250bd19debabba751 (patch) | |
tree | 352d09f7eb4643fb36bae9625fbeafd77643689e /templates/admin/repo | |
parent | 54f0293f0ab73f357f545f8e05d16f9b254aba5e (diff) | |
download | gitea-be6edaddcba1e607884539a250bd19debabba751.tar.gz gitea-be6edaddcba1e607884539a250bd19debabba751.zip |
Repo size in admin panel (#1482)
* Implementation of the feature to view repository size in admin panel
* Move GetRepoSize to git module
* Repository.RepoSize -> Repository.Size
* RepoSize -> Size in template
* Redo a few bits and pieces
* Update size when syncing mirror or forking
* Remove GetRepoSize
* Changed fatal errors to error message
* Copy migration code from Gogs
* make fmt
Diffstat (limited to 'templates/admin/repo')
-rw-r--r-- | templates/admin/repo/list.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index ffdbd5bfb8..aeaecf8dfb 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -20,6 +20,7 @@ <th>{{.i18n.Tr "admin.repos.watches"}}</th> <th>{{.i18n.Tr "admin.repos.stars"}}</th> <th>{{.i18n.Tr "admin.repos.issues"}}</th> + <th>{{.i18n.Tr "admin.repos.size"}}</th> <th>{{.i18n.Tr "admin.users.created"}}</th> <th>{{.i18n.Tr "admin.notices.op"}}</th> </tr> @@ -34,6 +35,7 @@ <td>{{.NumWatches}}</td> <td>{{.NumStars}}</td> <td>{{.NumIssues}}</td> + <td>{{SizeFmt .Size}}</td> <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td> <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}"><i class="trash icon text red"></i></a></td> </tr> |