aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/display-file.htm1
-rw-r--r--data/templates/edit.htm4
2 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/display-file.htm b/data/templates/display-file.htm
index ee3a3c2..67a584b 100644
--- a/data/templates/display-file.htm
+++ b/data/templates/display-file.htm
@@ -4,6 +4,7 @@
{% for toolinfo in file.getToolInfos %}
<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>
</div>
{{file.getRenderedContent(toolres)|raw}}
diff --git a/data/templates/edit.htm b/data/templates/edit.htm
index 542bb34..401ed00 100644
--- a/data/templates/edit.htm
+++ b/data/templates/edit.htm
@@ -16,7 +16,9 @@
</div>
{% for fileid, file in repo.getFiles %}
- {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+ {% if not singlefile or file == singlefile %}
+ {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+ {% endif %}
{% endfor %}
{% include 'edit-add.htm' %}