summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.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/view_list.tmpl
parentabc57b6e439c5ab9c3b6ed2cedeb10d50f5ae619 (diff)
downloadgitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.tar.gz
gitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.zip
continue work on #255
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 032b9e0f1b..e65d7c1134 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -18,7 +18,7 @@
{{if .HasParentPath}}
<tr class="has-parent">
<td class="icon"></td>
- <td class="name"><a href="{{.BranchLink}}{{.ParentPath}}">..</a></td>
+ <td class="name"><a href="{{EscapePound .BranchLink}}{{.ParentPath}}">..</a></td>
<td class="msg"></td>
<td class="age"></td>
</tr>
@@ -39,7 +39,7 @@
<span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span>
</td>
<td class="name">
- <a href="{{$.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a>
+ <a href="{{EscapePound $.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a>
</td>
{{end}}
<td class="msg">