diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:48:10 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 01:48:10 -0400 |
commit | f6596f11c4aacd3c7c30098f7ffe79e936d21583 (patch) | |
tree | aad5d5017b03d530e6c69ea474266fecea86d0e2 /templates/admin | |
parent | 369ddf76a8ae6916ab72f1fa26c81b44c456c6ea (diff) | |
download | gitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.tar.gz gitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.zip |
All configuration reload-able
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 17 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 9 | ||||
-rw-r--r-- | templates/admin/nav.tmpl | 8 | ||||
-rw-r--r-- | templates/admin/repos.tmpl | 9 | ||||
-rw-r--r-- | templates/admin/users.tmpl | 9 |
5 files changed, 28 insertions, 24 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl new file mode 100644 index 0000000000..d209bcdfd9 --- /dev/null +++ b/templates/admin/config.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +<div id="gogs-body" class="container" data-page="admin"> + {{template "admin/nav" .}} + <div id="gogs-admin-container" class="col-md-9"> + <div class="panel panel-default"> + <div class="panel-heading"> + Server Configuration + </div> + + <div class="panel-body"> + + </div> + </div> + </div> +</div> +{{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 6a914b65f7..8950f50cac 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -1,14 +1,7 @@ {{template "base/head" .}} {{template "base/navbar" .}} <div id="gogs-body" class="container" data-page="admin"> - <div id="gogs-user-setting-nav" class="col-md-3"> - <ul class="list-group" data-init="tabs"> - <li class="list-group-item active"><a href="/admin"><i class="fa fa-tachometer fa-lg"></i> Dashboard</a></li> - <li class="list-group-item"><a href="/admin/users"><i class="fa fa-users fa-lg"></i> Users</a></li> - <li class="list-group-item"><a href="/admin/repos"><i class="fa fa-book fa-lg"></i> Repositories</a></li> - </ul> - </div> - + {{template "admin/nav" .}} <div id="gogs-admin-container" class="col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> diff --git a/templates/admin/nav.tmpl b/templates/admin/nav.tmpl new file mode 100644 index 0000000000..bb704ee3fb --- /dev/null +++ b/templates/admin/nav.tmpl @@ -0,0 +1,8 @@ +<div id="gogs-user-setting-nav" class="col-md-3"> + <ul class="list-group" data-init="tabs"> + <li class="list-group-item{{if .PageIsDashboard}} active{{end}}"><a href="/admin"><i class="fa fa-tachometer fa-lg"></i> Dashboard</a></li> + <li class="list-group-item{{if .PageIsUsers}} active{{end}}"><a href="/admin/users"><i class="fa fa-users fa-lg"></i> Users</a></li> + <li class="list-group-item{{if .PageIsRepos}} active{{end}}"><a href="/admin/repos"><i class="fa fa-book fa-lg"></i> Repositories</a></li> + <li class="list-group-item{{if .PageIsConfig}} active{{end}}"><a href="/admin/config"><i class="fa fa-cogs fa-lg"></i> Configuration</a></li> + </ul> +</div>
\ No newline at end of file diff --git a/templates/admin/repos.tmpl b/templates/admin/repos.tmpl index f4834c9060..a1f41d8365 100644 --- a/templates/admin/repos.tmpl +++ b/templates/admin/repos.tmpl @@ -1,14 +1,7 @@ {{template "base/head" .}} {{template "base/navbar" .}} <div id="gogs-body" class="container" data-page="admin"> - <div id="gogs-user-setting-nav" class="col-md-3"> - <ul class="list-group" data-init="tabs"> - <li class="list-group-item"><a href="/admin"><i class="fa fa-tachometer fa-lg"></i> Dashboard</a></li> - <li class="list-group-item"><a href="/admin/users"><i class="fa fa-users fa-lg"></i> Users</a></li> - <li class="list-group-item active"><a href="/admin/repos"><i class="fa fa-book fa-lg"></i> Repositories</a></li> - </ul> - </div> - + {{template "admin/nav" .}} <div id="gogs-admin-container" class="col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> diff --git a/templates/admin/users.tmpl b/templates/admin/users.tmpl index b690e1771e..ae2b5bbb65 100644 --- a/templates/admin/users.tmpl +++ b/templates/admin/users.tmpl @@ -1,14 +1,7 @@ {{template "base/head" .}} {{template "base/navbar" .}} <div id="gogs-body" class="container" data-page="admin"> - <div id="gogs-user-setting-nav" class="col-md-3"> - <ul class="list-group" data-init="tabs"> - <li class="list-group-item"><a href="/admin"><i class="fa fa-tachometer fa-lg"></i> Dashboard</a></li> - <li class="list-group-item active"><a href="/admin/users"><i class="fa fa-users fa-lg"></i> Users</a></li> - <li class="list-group-item"><a href="/admin/repos"><i class="fa fa-book fa-lg"></i> Repositories</a></li> - </ul> - </div> - + {{template "admin/nav" .}} <div id="gogs-admin-container" class="col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> |