diff options
author | Unknwon <u@gogs.io> | 2015-08-20 20:18:49 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-20 20:18:49 +0800 |
commit | aa65761d81d3f33bdfee578c14bb2b0c7a6ca639 (patch) | |
tree | 8c86e0e58758bc10a737b503f8d92e62406adf06 /templates/repo/diff.tmpl | |
parent | d7c3c79c00425e89a71e6178076bc5828421244d (diff) | |
download | gitea-aa65761d81d3f33bdfee578c14bb2b0c7a6ca639.tar.gz gitea-aa65761d81d3f33bdfee578c14bb2b0c7a6ca639.zip |
new commits table
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r-- | templates/repo/diff.tmpl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 268bbc166e..4cc4c592a7 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -1,19 +1,18 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -<div id="repo-wrapper"> - {{template "repo/header_old" .}} - <div class="container clear" id="diff-page"> - {{if .IsDiffCompare }} +{{template "base/head" .}} +<div class="repository diff"> + {{template "repo/header" .}} + <div class="ui container"> + {{if .IsDiffCompare }} <div class="panel panel-info panel-radius compare-head-box"> <div class="panel-header"> <a class="pull-right btn btn-blue btn-header btn-medium btn-radius" rel="nofollow" href="{{EscapePound .SourcePath}}">{{.i18n.Tr "repo.diff.browse_source"}}</a> <h4><a href="{{$.RepoLink}}/commit/{{.BeforeCommitId}}" class="label label-green">{{ShortSha .BeforeCommitId}}</a> ... <a href="{{$.RepoLink}}/commit/{{.AfterCommitId}}" class="label label-green">{{ShortSha .AfterCommitId}}</a></h4> </div> <div class="panel-body compare"> - {{template "repo/commits_table" .}} </div> </div> - {{else}} + {{template "repo/commits_table" .}} + {{else}} <div class="panel panel-info panel-radius diff-head-box"> <div class="panel-header"> <a class="pull-right btn btn-blue btn-header btn-medium btn-radius" rel="nofollow" href="{{EscapePound .SourcePath}}">{{.i18n.Tr "repo.diff.browse_source"}}</a> @@ -41,7 +40,8 @@ </p> </div> </div> - {{end}} + {{end}} + {{if .DiffNotAvailable}} <h4>{{.i18n.Tr "repo.diff.data_not_available"}}</h4> {{else}} @@ -129,6 +129,6 @@ <br> {{end}} {{end}} - </div> + </div> </div> -{{template "ng/base/footer" .}} +{{template "base/footer" .}} |