aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-21 22:23:36 -0700
committerMario Vavti <mario@mariovavti.com>2017-05-23 21:44:25 +0200
commitec7ecc285ec10a7990db09bda436fd498e05245a (patch)
tree2efd4921738d35175cacdc40ead40da3276f51d0 /view/tpl
parentdea0d07b9af9a5927dd524a3e486317690a7e112 (diff)
downloadvolse-hubzilla-ec7ecc285ec10a7990db09bda436fd498e05245a.tar.gz
volse-hubzilla-ec7ecc285ec10a7990db09bda436fd498e05245a.tar.bz2
volse-hubzilla-ec7ecc285ec10a7990db09bda436fd498e05245a.zip
apporder module and all the associated backend stuff to make it work; probably needs a bit of UI cleanup and a link to it from somewhere
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/app.tpl7
-rw-r--r--view/tpl/apporder.tpl7
2 files changed, 13 insertions, 1 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index 28f28611e..f45510a58 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -25,6 +25,11 @@
{{/if}}
</div>
{{else}}
+{{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}}
diff --git a/view/tpl/apporder.tpl b/view/tpl/apporder.tpl
new file mode 100644
index 000000000..fdb726131
--- /dev/null
+++ b/view/tpl/apporder.tpl
@@ -0,0 +1,7 @@
+<h2>{{$header}}</h2>
+
+<div class="descriptive-text">{{$desc}}</div>
+<br><br><br>
+{{foreach $nav_apps as $nav_app}}
+{{$nav_app}}
+{{/foreach}}