aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-15 20:01:20 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-15 20:01:20 -0400
commitc3a52f7dd075f1f3cf7fb935b7489629760837ab (patch)
treeab27cc4a5cc1d10c366bcfd04585f02fccb8176b /templates/repo/diff.tmpl
parent67426534ef9f0ceba49330cbc0b7676f4009a6e1 (diff)
downloadgitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.tar.gz
gitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.zip
Mirror bug fix on downloading zip
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r--templates/repo/diff.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index f3d935aebe..0dce405337 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -5,7 +5,7 @@
<div id="source">
<div class="panel panel-info diff-box diff-head-box">
<div class="panel-heading">
- <a class="pull-right btn btn-primary btn-sm" href="{{.SourcePath}}">Browse Source</a>
+ <a class="pull-right btn btn-primary btn-sm" rel="nofollow" href="{{.SourcePath}}">Browse Source</a>
<h4>{{.Commit.Message}}</h4>
</div>
<div class="panel-body">
@@ -33,7 +33,7 @@
{{range .Diff.Files}}
<li>
<div class="diff-counter count pull-right">
- {{if Add .Addition .Deletion}}
+ {{if not .IsBin}}
<span class="add" data-line="{{.Addition}}">{{.Addition}}</span>
<span class="bar">
<span class="pull-left add"></span>
@@ -56,7 +56,7 @@
<div class="panel panel-default diff-file-box diff-box file-content" id="diff-2">
<div class="panel-heading">
<div class="diff-counter count pull-left">
- {{if Add .Addition .Deletion}}
+ {{if not .IsBin}}
<span class="add" data-line="{{.Addition}}">+ {{.Addition}}</span>
<span class="bar">
<span class="pull-left add"></span>
@@ -67,7 +67,7 @@
BIN
{{end}}
</div>
- <a class="btn btn-default btn-sm pull-right" href="{{$.SourcePath}}/{{.Name}}">View File</a>
+ <a class="btn btn-default btn-sm pull-right" rel="nofollow" href="{{$.SourcePath}}/{{.Name}}">View File</a>
<span class="file">{{.Name}}</span>
</div>
{{$isImage := (call $.IsImageFile .Name)}}