summaryrefslogtreecommitdiffstats
path: root/templates/repo
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
parent67426534ef9f0ceba49330cbc0b7676f4009a6e1 (diff)
downloadgitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.tar.gz
gitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.zip
Mirror bug fix on downloading zip
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/commits.tmpl2
-rw-r--r--templates/repo/diff.tmpl8
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl
index 8125fedaa8..b14c6bc8c6 100644
--- a/templates/repo/commits.tmpl
+++ b/templates/repo/commits.tmpl
@@ -32,7 +32,7 @@
{{range $r}}
<tr>
<td class="author"><img class="avatar" src="{{AvatarLink .Author.Email}}" alt=""/><a href="/user/email2user?email={{.Author.Email}}">{{.Author.Name}}</a></td>
- <td class="sha"><a class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td>
+ <td class="sha"><a rel="nofollow" class="label label-success" href="/{{$username}}/{{$reponame}}/commit/{{.Id}} ">{{SubStr .Id.String 0 10}} </a></td>
<td class="message">{{.Message}} </td>
<td class="date">{{TimeSince .Author.When}}</td>
</tr>
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)}}