aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-22 11:22:43 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-22 11:22:43 +0100
commit55924f5c5b147412fda350a3b7c2ecfaef523e19 (patch)
tree3a9cb46ff8b67b627a6c0ae7cc693b0d21952076 /view/tpl
parent956f0043fc73c290d9154ab06337b995ddfd1a1c (diff)
downloadvolse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.tar.gz
volse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.tar.bz2
volse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.zip
apps improvements
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/app.tpl2
-rw-r--r--view/tpl/app_select.tpl10
-rwxr-xr-xview/tpl/myapps.tpl9
3 files changed, 9 insertions, 12 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index ba97ad501..5ff205c53 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -18,7 +18,7 @@
{{if $install}}<button type="submit" name="install" value="{{$install}}" class="btn btn-default btn-xs" title="{{$install}}" ><i class="fa fa-arrow-circle-o-down" ></i></button>{{/if}}
{{if $edit}}<input type="hidden" name="appid" value="{{$app.guid}}" /><button type="submit" name="edit" value="{{$edit}}" class="btn btn-default btn-xs" title="{{$edit}}" ><i class="fa fa-pencil" ></i></button>{{/if}}
{{if $delete}}<button type="submit" name="delete" value="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" class="btn btn-default btn-xs" title="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" ><i class="fa fa-trash-o drop-icons"></i></button>{{/if}}
- {{if $feature}}<button type="submit" name="feature" value="feature" class="btn btn-default btn-xs" ><i class="fa fa-star"{{if $featured}} style="color: gold"{{/if}}></i></button>{{/if}}
+ {{if $feature}}<button type="submit" name="feature" value="feature" class="btn btn-default btn-xs" title="{{if $featured}}{{$remove}}{{else}}{{$add}}{{/if}}"><i class="fa fa-star"{{if $featured}} style="color: gold"{{/if}}></i></button>{{/if}}
</form>
</div>
{{/if}}
diff --git a/view/tpl/app_select.tpl b/view/tpl/app_select.tpl
deleted file mode 100644
index 86ea0b1de..000000000
--- a/view/tpl/app_select.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if $authed}}
-<div class="widget">
-<h3>{{$title}}</h3>
-<ul class="nav nav-pills nav-stacked">
-<li><a href="appman"><i class="fa fa-plus"></i>&nbsp;&nbsp;{{$new}}</a></li>
-<li><a href="apps/edit{{if $cat}}/?f=&cat={{$cat}}{{/if}}"><i class="fa fa-pencil"></i>&nbsp;&nbsp;{{$edit}}</a></li>
-</ul>
-</div>
-{{/if}}
-
diff --git a/view/tpl/myapps.tpl b/view/tpl/myapps.tpl
index 074965985..d0c741bf4 100755
--- a/view/tpl/myapps.tpl
+++ b/view/tpl/myapps.tpl
@@ -1,6 +1,13 @@
<div class="generic-content-wrapper">
<div class="section-title-wrapper">
- <h2>{{$title}}{{$cat}}</h2>
+ {{if $authed}}
+ {{if $create}}
+ <a href="appman" class="pull-right btn btn-success btn-xs"><i class="fa fa-pencil-square-o"></i>&nbsp;{{$create}}</a>
+ {{else}}
+ <a href="apps/edit{{if $cat}}/?f=&cat={{$cat}}{{/if}}" class="pull-right btn btn-primary btn-xs">{{$manage}}</a>
+ {{/if}}
+ {{/if}}
+ <h2>{{$title}}{{if $cat}} - {{$cat}}{{/if}}</h2>
</div>
<div class="section-content-wrapper">
{{foreach $apps as $ap}}