summaryrefslogtreecommitdiffstats
path: root/templates/admin/repo
diff options
context:
space:
mode:
authorPatrick G <geek1011@users.noreply.github.com>2017-03-15 22:39:38 +0000
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-03-15 23:39:38 +0100
commitefbb895ebe33327630195ac52f10bd3d85bbae00 (patch)
tree988e09097921de93e11149fcdff7b3951ae39e90 /templates/admin/repo
parent03d79983ee40a22039b5fd1a204499977ab87254 (diff)
downloadgitea-efbb895ebe33327630195ac52f10bd3d85bbae00.tar.gz
gitea-efbb895ebe33327630195ac52f10bd3d85bbae00.zip
Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)
Diffstat (limited to 'templates/admin/repo')
-rw-r--r--templates/admin/repo/list.tmpl86
1 files changed, 41 insertions, 45 deletions
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl
index ccc958fe93..ffdbd5bfb8 100644
--- a/templates/admin/repo/list.tmpl
+++ b/templates/admin/repo/list.tmpl
@@ -1,52 +1,48 @@
{{template "base/head" .}}
<div class="admin user">
+ {{template "admin/navbar" .}}
<div class="ui container">
- <div class="ui grid">
- {{template "admin/navbar" .}}
- <div class="twelve wide column content">
- {{template "base/alert" .}}
- <h4 class="ui top attached header">
- {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
- </h4>
- <div class="ui attached segment">
- {{template "admin/base/search" .}}
- </div>
- <div class="ui attached table segment">
- <table class="ui very basic striped table">
- <thead>
- <tr>
- <th>ID</th>
- <th>{{.i18n.Tr "admin.repos.owner"}}</th>
- <th>{{.i18n.Tr "admin.repos.name"}}</th>
- <th>{{.i18n.Tr "admin.repos.private"}}</th>
- <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.users.created"}}</th>
- <th>{{.i18n.Tr "admin.notices.op"}}</th>
- </tr>
- </thead>
- <tbody>
- {{range .Repos}}
- <tr>
- <td>{{.ID}}</td>
- <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td>
- <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
- <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
- <td>{{.NumWatches}}</td>
- <td>{{.NumStars}}</td>
- <td>{{.NumIssues}}</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>
- {{end}}
- </tbody>
- </table>
- </div>
-
- {{template "base/paginate" .}}
- </div>
+ {{template "base/alert" .}}
+ <h4 class="ui top attached header">
+ {{.i18n.Tr "admin.repos.repo_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
+ </h4>
+ <div class="ui attached segment">
+ {{template "admin/base/search" .}}
+ </div>
+ <div class="ui attached table segment">
+ <table class="ui very basic striped table">
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>{{.i18n.Tr "admin.repos.owner"}}</th>
+ <th>{{.i18n.Tr "admin.repos.name"}}</th>
+ <th>{{.i18n.Tr "admin.repos.private"}}</th>
+ <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.users.created"}}</th>
+ <th>{{.i18n.Tr "admin.notices.op"}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{range .Repos}}
+ <tr>
+ <td>{{.ID}}</td>
+ <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td>
+ <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
+ <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
+ <td>{{.NumWatches}}</td>
+ <td>{{.NumStars}}</td>
+ <td>{{.NumIssues}}</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>
+ {{end}}
+ </tbody>
+ </table>
</div>
+
+ {{template "base/paginate" .}}
</div>
</div>