aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/single_file.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-27 01:05:13 -0600
committerUnknown <joe2010xtmf@163.com>2014-04-27 01:05:13 -0600
commit62d23e91541550d0478c4884696e918a0e818b4f (patch)
tree335e18b41b15a419233e5117d1cbc43fa66f2b5c /templates/repo/single_file.tmpl
parent59d0e73c3507296b31c8e741b44afc7bfe1eb695 (diff)
HTTP no follow and offline mode
Diffstat (limited to 'templates/repo/single_file.tmpl')
-rw-r--r--templates/repo/single_file.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl
index b8205024..95c41b70 100644
--- a/templates/repo/single_file.tmpl
+++ b/templates/repo/single_file.tmpl
@@ -14,7 +14,7 @@
{{if not .ReadmeInSingle}}
<div class="btn-group pull-right">
<a class="btn btn-default hidden" href="#">Edit</a>
- <a class="btn btn-default" href="{{.FileLink}}">Raw</a>
+ <a class="btn btn-default" href="{{.FileLink}}" rel="nofollow">Raw</a>
<a class="btn btn-default hidden" href="#">Blame</a>
<a class="btn btn-default hidden" href="#">History</a>
<a class="btn btn-danger hidden" href="#">Delete</a>
@@ -27,7 +27,7 @@
{{if .IsImageFile}}
<img src="{{.FileLink}}">
{{else}}
- <a href="{{.FileLink}}" class="btn btn-default">View Raw</a>
+ <a href="{{.FileLink}}" rel="nofollow" class="btn btn-default">View Raw</a>
{{end}}
</div>
{{else}}