diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 04:13:32 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 04:13:32 -0400 |
commit | e67653cf13857f671de9bf6279453f99cdd60d11 (patch) | |
tree | e2e35de1c29cebd2799ecb3d7eb2d5e797ecbbf7 /templates | |
parent | c2816afe9c60922b3468cece689c84e52e0ba11c (diff) | |
download | gitea-e67653cf13857f671de9bf6279453f99cdd60d11.tar.gz gitea-e67653cf13857f671de9bf6279453f99cdd60d11.zip |
Bug fix
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/config.tmpl | 1 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 9 | ||||
-rw-r--r-- | templates/repo/nav.tmpl | 6 |
3 files changed, 13 insertions, 3 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 9593a545f8..7013c201ae 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -57,6 +57,7 @@ </div> <div class="panel-body"> + <div><b>Enabled:</b> <i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></div> <div><b>Name:</b> {{.Mailer.Name}}</div> <div><b>Host:</b> {{.Mailer.Host}}</div> <div><b>User:</b> {{.Mailer.User}}</div> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 8950f50cac..6088487d62 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -12,6 +12,15 @@ Gogs database has <b>{{.Stats.Counter.User}}</b> users, <b>{{.Stats.Counter.PublicKey}}</b> SSH keys, <b>{{.Stats.Counter.Repo}}</b> repositories, <b>{{.Stats.Counter.Watch}}</b> watches, <b>{{.Stats.Counter.Action}}</b> actions, and <b>{{.Stats.Counter.Access}}</b> accesses. </div> </div> + + <div class="panel panel-default"> + <div class="panel-heading"> + System Status + </div> + + <div class="panel-body"> + </div> + </div> </div> </div> {{template "base/footer" .}}
\ No newline at end of file diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl index 718c429a2b..c61051af25 100644 --- a/templates/repo/nav.tmpl +++ b/templates/repo/nav.tmpl @@ -5,8 +5,8 @@ <h3 class="name"><i class="fa fa-book fa-lg"></i><a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / {{.Repository.Name}}</h3> <p class="desc">{{.Repository.Description}}{{if .Repository.Website}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}</p> </div> - {{if not .IsBareRepo}} <div class="col-md-6 actions text-right"> + {{if not .IsBareRepo}} <div class="btn-group" id="gogs-repo-clone"> <button type="button" class="btn btn-default"><i class="fa fa-download fa-lg fa-m"></i></button> <button type="button" class="btn btn-default dropdown-toggle" data-container="body" data-toggle="popover" data-placement="bottom" data-content="<label>SSH:</label><div class='input-group'><input type='text' class='form-control' value='{{.CloneLink.SSH}}'></div>" data-html="1"> @@ -38,11 +38,11 @@ <div class="btn-group"> <button type="button" class="btn btn-default"><i class="fa fa-star"></i>Star {{.Repository.NumStars}}</button> </div> + {{end}} <div class="btn-group"> - <button type="button" class="btn btn-default"><i class="fa fa-code-fork"></i>Fork {{.Repository.NumForks}}</button> + <a type="button" {{if not .IsRepositoryOwner}}href="/{{.Username}}/{{.Reponame}}/fork"{{end}} class="btn btn-default"><i class="fa fa-code-fork"></i>Fork {{.Repository.NumForks}}</a> </div> </div> - {{end}} </div> </div> </div>
\ No newline at end of file |