diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display-file.htm | 2 | ||||
| -rw-r--r-- | data/templates/edit.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm index 67a584b..adffbc7 100644 --- a/data/templates/display-file.htm +++ b/data/templates/display-file.htm @@ -5,7 +5,7 @@ <a class="btn btn-mini" href="{{toolinfo.getLink(file)}}" style="float: right;">{{toolinfo.getTitle}}</a> {% endfor %} <a class="btn btn-mini" href="{{repo.getLink('edit', file.getFilename)}}" style="float: right;" title="edit"><i class="icon-edit"></i></a> - <h3 id="{{file.getFilename|replace({' ': '-'})}}">{{file.getFilename}}<a class="anchorlink" href="{{repo.getLink('display')}}#{{file.getFilename|replace({' ': '-'})}}"></a></h3> + <h3 id="{{file.getAnchorName}}">{{file.getFilename}}<a class="anchorlink" href="{{repo.getLink('display')}}#{{file.getAnchorName}}"></a></h3> </div> {{file.getRenderedContent(toolres)|raw}} </div> diff --git a/data/templates/edit.htm b/data/templates/edit.htm index 401ed00..870ef23 100644 --- a/data/templates/edit.htm +++ b/data/templates/edit.htm @@ -7,7 +7,7 @@ {% block content %} <div class="content-padding-fix"></div> -<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data" class="form-horizontal"> +<form method="post" action="{{repo.getLink('edit', singlefile.getFilename)}}" enctype="multipart/form-data" class="form-horizontal"> <div class="control-group"> <label class="control-label" for="description">Description</label> <div class="controls"> |
