aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-11-19 18:04:25 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-11-19 18:04:25 +0100
commit4dc235ae9ebc5126b93a176bd76b42683946da38 (patch)
treed75315da275ab14bf80b79384ce503896cb943d3 /data
parent7b549853080c5768d4da0b086d9b56b4b9d634c5 (diff)
downloadphorkie-4dc235ae9ebc5126b93a176bd76b42683946da38.tar.gz
phorkie-4dc235ae9ebc5126b93a176bd76b42683946da38.zip
Fix bug #44: fix anchors of files with spaces in their name
Diffstat (limited to 'data')
-rw-r--r--data/templates/display-file.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm
index 8a25506..ee3a3c2 100644
--- a/data/templates/display-file.htm
+++ b/data/templates/display-file.htm
@@ -4,7 +4,7 @@
{% for toolinfo in file.getToolInfos %}
<a class="btn btn-mini" href="{{toolinfo.getLink(file)}}" style="float: right;">{{toolinfo.getTitle}}</a>
{% endfor %}
- <h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
+ <h3 id="{{file.getFilename|replace({' ': '-'})}}">{{file.getFilename}}<a class="anchorlink" href="{{repo.getLink('display')}}#{{file.getFilename|replace({' ': '-'})}}"></a></h3>
</div>
{{file.getRenderedContent(toolres)|raw}}
</div>