aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-30 18:49:18 -0700
committerzotlabs <mike@macgirvin.com>2017-10-30 18:49:18 -0700
commit71e0e55b0b5bc1746cb481056b027e76c1821ef7 (patch)
tree7e49ea56994a901398ee49d9c2bc6d8586d58595 /view/tpl
parent4fef29e61c32b129f0090a4962d91607337a9406 (diff)
downloadvolse-hubzilla-71e0e55b0b5bc1746cb481056b027e76c1821ef7.tar.gz
volse-hubzilla-71e0e55b0b5bc1746cb481056b027e76c1821ef7.tar.bz2
volse-hubzilla-71e0e55b0b5bc1746cb481056b027e76c1821ef7.zip
provide a 'tile' view (view only) mode to mod_cloud
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cloud_directory.tpl35
-rw-r--r--view/tpl/cloud_header.tpl1
2 files changed, 36 insertions, 0 deletions
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl
index e8ae6a590..3beeb4f8a 100644
--- a/view/tpl/cloud_directory.tpl
+++ b/view/tpl/cloud_directory.tpl
@@ -1,4 +1,38 @@
<div id="cloud-drag-area" class="section-content-wrapper-np">
+ {{if $tiles}}
+
+ {{if $parentpath}}
+ <div class="cloud-container" style="float: left; width: 80px; height: 80px; margin: 5px;">
+ <div class="cloud-icon"><a href="{{$parentpath.path}}">
+ <i class="fa fa-level-up" style="font-size: 48px;"></i>
+ </a>
+ </div>
+ <div class="cloud-title" style="width: 78px; height: 36px; overflow: hidden;"><a href="{{$parentpath.path}}">..</a>
+ </div>
+ </div>
+ {{/if}}
+
+ {{foreach $entries as $item}}
+ <div class="cloud-container" style="float: left; width: 80px; height: 80px; margin: 5px;">
+ <div class="cloud-icon"><a href="{{$item.fullPath}}">
+ {{if $item.photo_icon}}
+ <img src="photo/{{$item.photo_icon}}" style="width: 48px; height: 48px;">
+ {{else}}
+ <i class="fa {{$item.iconFromType}}" title="{{$item.type}}" style="font-size: 48px;"></i>
+ {{/if}}
+ </a>
+ </div>
+ <div class="cloud-title" style="width: 78px; height: 36px; overflow: hidden;"><a href="{{$item.fullPath}}">
+ {{$item.displayName}}
+ </a>
+ </div>
+ {{if $item.is_owner}}
+
+ {{/if}}
+ </div>
+ {{/foreach}}
+ <div class="clear"></div>
+ {{else}}
<table id="cloud-index">
<tr>
<th width="1%"></th>
@@ -42,4 +76,5 @@
{{/foreach}}
</table>
+ {{/if}}
</div>
diff --git a/view/tpl/cloud_header.tpl b/view/tpl/cloud_header.tpl
index c1e589341..468f2febc 100644
--- a/view/tpl/cloud_header.tpl
+++ b/view/tpl/cloud_header.tpl
@@ -1,6 +1,7 @@
<div class="section-title-wrapper">
{{if $actionspanel}}
<div class="pull-right">
+ <a href="cloud_tiles/{{$cpath}}" class="btn btn-sm btn-outline-secondary"><i class="fa fa-fw {{if $tiles}}fa-list-ul{{else}}fa-table{{/if}}"></i></a>
{{if $is_owner}}
<a href="/sharedwithme" class="btn btn-sm btn-outline-secondary"><i class="fa fa-cloud-download"></i>&nbsp;{{$shared}}</a>
{{/if}}