]> source.dussan.org Git - gitea.git/commitdiff
fix style
authorUnknwon <u@gogs.io>
Thu, 20 Aug 2015 16:32:46 +0000 (00:32 +0800)
committerUnknwon <u@gogs.io>
Thu, 20 Aug 2015 16:32:46 +0000 (00:32 +0800)
templates/repo/commits_table.tmpl
templates/repo/diff.tmpl

index 5586e0632bc7aa8bd0b8be088610cbdca12d160f..eefdf8c824675633eaf04953dc418d2f78d91eb0 100644 (file)
@@ -9,6 +9,8 @@
       <button class="ui black tiny button" data-panel="#add-deploy-key-panel">{{.i18n.Tr "repo.commits.find"}}</button>
     </form>
   </div>
+  {{else if .IsDiffCompare}}
+  <a href="{{$.RepoLink}}/commit/{{.BeforeCommitId}}" class="ui green sha label">{{ShortSha .BeforeCommitId}}</a> ... <a href="{{$.RepoLink}}/commit/{{.AfterCommitId}}" class="ui green sha label">{{ShortSha .AfterCommitId}}</a>
   {{end}}
 </h4>
 <div class="ui attached table segment">
index ed3b32bcc694009dc1791fe3037185c1b8471fdd..8b10cc8808ed3863626620fcb63afaece4c4d8a0 100644 (file)
@@ -3,14 +3,6 @@
   {{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">
-        </div>
-    </div>
     {{template "repo/commits_table" .}}
     {{else}}
     <h4 class="ui top attached info header">