summaryrefslogtreecommitdiffstats
path: root/templates/repo/header.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-07 16:44:25 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-07 16:44:25 -0500
commit35977cd34cd635bca7f07ed2eb1fba0df9944e1d (patch)
treef12c39c762ce686e47eae6bf7282d08e12b1e10f /templates/repo/header.tmpl
parentabc57b6e439c5ab9c3b6ed2cedeb10d50f5ae619 (diff)
downloadgitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.tar.gz
gitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.zip
continue work on #255
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r--templates/repo/header.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 976c8e0c00..2344311d61 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -25,8 +25,8 @@
<p class="text-center" id="repo-clone-help">{{$.i18n.Tr "repo.clone_helper" | Str2html}}</p>
<hr/>
<div class="text-center" id="repo-clone-zip">
- <a class="btn btn-green btn-radius" href="{{$.RepoLink}}/archive/{{$.BranchName}}.zip"><i class="octicon octicon-file-zip"></i>ZIP</a>
- <a class="btn btn-green btn-radius" href="{{$.RepoLink}}/archive/{{$.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i>TAR.GZ</a>
+ <a class="btn btn-green btn-radius" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip"><i class="octicon octicon-file-zip"></i>ZIP</a>
+ <a class="btn btn-green btn-radius" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz"><i class="octicon octicon-file-zip"></i>TAR.GZ</a>
</div>
</div>
</div>