aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/attach_edit.tpl9
-rw-r--r--view/tpl/filestorage.tpl9
2 files changed, 12 insertions, 6 deletions
diff --git a/view/tpl/attach_edit.tpl b/view/tpl/attach_edit.tpl
index 1483336ff..fa6f8914f 100644
--- a/view/tpl/attach_edit.tpl
+++ b/view/tpl/attach_edit.tpl
@@ -14,11 +14,18 @@
<input type="hidden" name="uid" value="{{$uid}}" />
<input type="hidden" name="fileid" value="{{$file.id}}" />
+
{{if $isadir}}
<div id="attach-edit-recurse" >
<label id="attach-edit-recurse-text" for="attach-recurse-input" >{{$recurse}}</label>
<input id="attach-recurse-input" type="checkbox" name="recurse" value="1" />
</div>
+{{else}}
+<div class="cut-paste-desc">{{$cpdesc}}</div>
+<div id="cut-paste-link">
+<input type="text" id="cutpasteinput" name="cutpastelink" value="[attachment]{{$file.hash}},{{$file.revision}}[/attachment]" />
+<script>$('#cutpasteinput').select();</script>
+</div>
{{/if}}
<div id="attach-edit-perms" >
@@ -26,7 +33,7 @@
</div>
<div class="clear"></div>
-<input type="submit" name="submit" value="{{$submit}}" />
+<input id="attach-edit-submit" type="submit" name="submit" value="{{$submit}}" />
</form>
diff --git a/view/tpl/filestorage.tpl b/view/tpl/filestorage.tpl
index 0089f7918..7b88c6440 100644
--- a/view/tpl/filestorage.tpl
+++ b/view/tpl/filestorage.tpl
@@ -7,11 +7,10 @@
{{foreach $files as $key => $items}}
{{foreach $items as $item}}
<div class="files-list-item">
- <a href="{{$baseurl}}/{{$item.id}}/edit">{{$edit}}</a> |
- <a href="{{$baseurl}}/{{$item.id}}/delete">{{$delete}}</a> |
- [attachment]{{$item.download}},{{$item.rev}}[/attachment] |
- {{if ! $item.dir}}<a href="attach/{{$item.download}}">{{/if}}{{$item.title}}{{if ! $item.dir}}</a>{{/if}} |
- {{$item.size}} bytes
+ <a href="{{$baseurl}}/{{$item.id}}/edit">{{$edit}}</a>&nbsp;&nbsp;&nbsp;|
+ <a href="{{$baseurl}}/{{$item.id}}/delete">{{$delete}}</a> |&nbsp;&nbsp;&nbsp;
+ {{if ! $item.dir}}<a href="attach/{{$item.download}}">{{/if}}{{$item.title}}{{if ! $item.dir}}</a>{{/if}}
+ {{if ! $item.dir}} | {{$item.size}} bytes{{else}}{{$directory}}{{/if}}
</div>
{{/foreach}}