From 167265d533db2b7da1ea9e1a0f098d6e0d255183 Mon Sep 17 00:00:00 2001 From: Vladimir Vissoultchev Date: Tue, 28 Jul 2015 11:42:06 +0300 Subject: Allow file and directory names to contain percent character --- templates/repo/home.tmpl | 2 +- templates/repo/view_list.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 2cc114ed..7a18ed98 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -48,7 +48,7 @@ {{ $l := Subtract $n 1}} {{range $i, $v := .Treenames}} {{if eq $i $l}} - {{EscapePound $v}} + {{$v}} {{else}} {{$v}} {{end}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index f51c1002..d3303193 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -50,7 +50,7 @@ - {{$entry.Name}} + {{$entry.Name}} {{end}} @@ -66,4 +66,4 @@ {{if .ReadmeExist}} {{template "repo/view_file" .}} -{{end}} \ No newline at end of file +{{end}} -- cgit v1.2.3