aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/app.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-21 22:42:22 -0700
committerzotlabs <mike@macgirvin.com>2017-05-21 22:42:22 -0700
commit07ee4984cbdb3fa59441792a23c1cf3fc4151936 (patch)
tree0007e892b049b4f0484e1e65085470d99508a291 /view/tpl/app.tpl
parente4448423fbcee4e685b410a62844a245601d2e0b (diff)
downloadvolse-hubzilla-07ee4984cbdb3fa59441792a23c1cf3fc4151936.tar.gz
volse-hubzilla-07ee4984cbdb3fa59441792a23c1cf3fc4151936.tar.bz2
volse-hubzilla-07ee4984cbdb3fa59441792a23c1cf3fc4151936.zip
some issues with the app order template logic
Diffstat (limited to 'view/tpl/app.tpl')
-rw-r--r--view/tpl/app.tpl11
1 files changed, 6 insertions, 5 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index f45510a58..0c8ba7459 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -1,4 +1,4 @@
-{{if !$navapps}}
+{{if ! ($navapps || $order)}}
<div class="app-container">
<div class="app-detail{{if $deleted}} app-deleted{{/if}}">
<a href="{{$app.url}}"{{if $app.target}} target="{{$app.target}}"{{/if}}{{if $app.desc}} title="{{$app.desc}}{{if $app.price}} ({{$app.price}}){{/if}}"{{else}}title="{{$app.name}}"{{/if}}>{{if $icon}}<i class="app-icon fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="80" height="80" />{{/if}}
@@ -24,12 +24,13 @@
{{/if}}
{{/if}}
</div>
-{{else}}
+{{/if}}
+{{if $navapps}}
+<a class="dropdown-item" href="{{$app.url}}">{{if $icon}}<i class="generic-icons-nav fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" style="margin-right:9px;"/>{{/if}}{{$app.name}}</a>
+{{/if}}
{{if $order}}
<a href="{{$hosturl}}appman/{{$app.guid}}/moveup"><i class="generic-icons-nav fa fa-fw fa-arrow-up"></i></a>
<a href="{{$hosturl}}appman/{{$app.guid}}/movedown"><i class="generic-icons-nav fa fa-fw fa-arrow-down"></i></a>
{{if $icon}}<i class="generic-icons-nav fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" style="margin-right:9px;"/>{{/if}}{{$app.name}}<br>
-{{else}}
-<a class="dropdown-item" href="{{$app.url}}">{{if $icon}}<i class="generic-icons-nav fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" style="margin-right:9px;"/>{{/if}}{{$app.name}}</a>
-{{/if}}
{{/if}}
+