aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-22 21:45:00 -0800
committerzotlabs <mike@macgirvin.com>2018-02-22 21:45:00 -0800
commit5456ee7f655b854c37cddf0479f0d8757802ca86 (patch)
tree6acab9aeed07641986b6a3c77ede3374c22fccc1 /view/tpl
parent277da4363194bd652918b100b93fdb0a85f9f689 (diff)
downloadvolse-hubzilla-5456ee7f655b854c37cddf0479f0d8757802ca86.tar.gz
volse-hubzilla-5456ee7f655b854c37cddf0479f0d8757802ca86.tar.bz2
volse-hubzilla-5456ee7f655b854c37cddf0479f0d8757802ca86.zip
cloud 'view-as-tiles' toggle wasn't available (at all) for guests and they are the most likely to prefer that view. Fix that and make tiles the default view for guests, and list mode the default view for the channel owner.
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/cloud_header.tpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/view/tpl/cloud_header.tpl b/view/tpl/cloud_header.tpl
index 468f2febc..307dc8956 100644
--- a/view/tpl/cloud_header.tpl
+++ b/view/tpl/cloud_header.tpl
@@ -1,14 +1,15 @@
<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 $actionspanel}}
{{if $is_owner}}
<a href="/sharedwithme" class="btn btn-sm btn-outline-secondary"><i class="fa fa-cloud-download"></i>&nbsp;{{$shared}}</a>
{{/if}}
<button id="files-create-btn" class="btn btn-sm btn-primary" onclick="openClose('files-mkdir-tools'); closeMenu('files-upload-tools');"><i class="fa fa-folder-o"></i>&nbsp;{{$create}}</button>
<button id="files-upload-btn" class="btn btn-sm btn-success" onclick="openClose('files-upload-tools'); closeMenu('files-mkdir-tools');"><i class="fa fa-arrow-circle-o-up"></i>&nbsp;{{$upload}}</button>
+ {{/if}}
</div>
- {{/if}}
+
<h2>{{$header}}</h2>
<div class="clear"></div>
</div>