mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 09:15:19 +00:00
special handling for directories
This commit is contained in:
parent
5a5466346c
commit
e49e6c0d2a
2 changed files with 3 additions and 3 deletions
|
@ -138,8 +138,8 @@ function filestorage_content(&$a) {
|
|||
'download' => $rr['hash'],
|
||||
'title' => $rr['filename'],
|
||||
'size' => $rr['filesize'],
|
||||
'rev' => $rr['revision']
|
||||
|
||||
'rev' => $rr['revision'],
|
||||
'dir' => (($rr['flags'] & ATTACH_FLAG_DIR) ? true : false)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<a href="{{$baseurl}}/{{$item.id}}/edit">{{$edit}}</a> |
|
||||
<a href="{{$baseurl}}/{{$item.id}}/delete">{{$delete}}</a> |
|
||||
[attachment]{{$item.download}},{{$item.rev}}[/attachment] |
|
||||
<a href="attach/{{$item.download}}">{{$item.title}}</a> |
|
||||
{{if ! $item.dir}}<a href="attach/{{$item.download}}">{{/if}}{{$item.title}}{{if ! $item.dir}}</a>{{/if}} |
|
||||
{{$item.size}} bytes
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue