Skip to content

Commit efbb895

Browse files
geek1011bkcsoft
authored andcommitted
Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)
1 parent 03d7998 commit efbb895

37 files changed

+2075
-2187
lines changed

public/css/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,14 @@ footer .ui.language .menu {
420420
background: inherit !important;
421421
padding: 0 !important;
422422
}
423+
.ui.menu.new-menu {
424+
justify-content: center !important;
425+
padding-top: 15px !important;
426+
margin-top: -15px !important;
427+
margin-bottom: 15px !important;
428+
background-color: #FAFAFA !important;
429+
border-width: 1px !important;
430+
}
423431
.markdown:not(code) {
424432
overflow: hidden;
425433
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;

public/less/_base.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,12 @@ footer {
411411
background: inherit !important;
412412
padding: 0 !important;
413413
}
414+
415+
.ui.menu.new-menu {
416+
justify-content: center !important;
417+
padding-top: 15px !important;
418+
margin-top: -15px !important;
419+
margin-bottom: 15px !important;
420+
background-color: #FAFAFA !important;
421+
border-width: 1px !important;
422+
}

templates/admin/auth/edit.tmpl

Lines changed: 178 additions & 182 deletions
Large diffs are not rendered by default.

templates/admin/auth/list.tmpl

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,41 @@
11
{{template "base/head" .}}
22
<div class="admin authentication">
3+
{{template "admin/navbar" .}}
34
<div class="ui container">
4-
<div class="ui grid">
5-
{{template "admin/navbar" .}}
6-
<div class="twelve wide column content">
7-
{{template "base/alert" .}}
8-
<h4 class="ui top attached header">
9-
{{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
10-
<div class="ui right">
11-
<a class="ui blue tiny button" href="{{AppSubUrl}}/admin/auths/new">{{.i18n.Tr "admin.auths.new"}}</a>
12-
</div>
13-
</h4>
14-
<div class="ui attached table segment">
15-
<table class="ui very basic striped table">
16-
<thead>
17-
<tr>
18-
<th>ID</th>
19-
<th>{{.i18n.Tr "admin.auths.name"}}</th>
20-
<th>{{.i18n.Tr "admin.auths.type"}}</th>
21-
<th>{{.i18n.Tr "admin.auths.enabled"}}</th>
22-
<th>{{.i18n.Tr "admin.auths.updated"}}</th>
23-
<th>{{.i18n.Tr "admin.users.created"}}</th>
24-
<th>{{.i18n.Tr "admin.users.edit"}}</th>
25-
</tr>
26-
</thead>
27-
<tbody>
28-
{{range .Sources}}
29-
<tr>
30-
<td>{{.ID}}</td>
31-
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
32-
<td>{{.TypeName}}</td>
33-
<td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
34-
<td><span class="poping up" data-content="{{DateFmtLong .Updated}}" data-variation="tiny">{{DateFmtShort .Updated}}</span></td>
35-
<td><span class="poping up" data-content="{{DateFmtLong .Created}}" data-variation="tiny">{{DateFmtShort .Created}}</span></td>
36-
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
37-
</tr>
38-
{{end}}
39-
</tbody>
40-
</table>
41-
</div>
5+
{{template "base/alert" .}}
6+
<h4 class="ui top attached header">
7+
{{.i18n.Tr "admin.auths.auth_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
8+
<div class="ui right">
9+
<a class="ui blue tiny button" href="{{AppSubUrl}}/admin/auths/new">{{.i18n.Tr "admin.auths.new"}}</a>
4210
</div>
11+
</h4>
12+
<div class="ui attached table segment">
13+
<table class="ui very basic striped table">
14+
<thead>
15+
<tr>
16+
<th>ID</th>
17+
<th>{{.i18n.Tr "admin.auths.name"}}</th>
18+
<th>{{.i18n.Tr "admin.auths.type"}}</th>
19+
<th>{{.i18n.Tr "admin.auths.enabled"}}</th>
20+
<th>{{.i18n.Tr "admin.auths.updated"}}</th>
21+
<th>{{.i18n.Tr "admin.users.created"}}</th>
22+
<th>{{.i18n.Tr "admin.users.edit"}}</th>
23+
</tr>
24+
</thead>
25+
<tbody>
26+
{{range .Sources}}
27+
<tr>
28+
<td>{{.ID}}</td>
29+
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
30+
<td>{{.TypeName}}</td>
31+
<td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
32+
<td><span class="poping up" data-content="{{DateFmtLong .Updated}}" data-variation="tiny">{{DateFmtShort .Updated}}</span></td>
33+
<td><span class="poping up" data-content="{{DateFmtLong .Created}}" data-variation="tiny">{{DateFmtShort .Created}}</span></td>
34+
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
35+
</tr>
36+
{{end}}
37+
</tbody>
38+
</table>
4339
</div>
4440
</div>
4541
</div>

0 commit comments

Comments
 (0)