aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/app.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-14 19:11:01 -0800
committerzotlabs <mike@macgirvin.com>2016-12-14 19:11:01 -0800
commitbae28965abb179948ccd50eabdc2c038a58b9b03 (patch)
treedfb9503bec536f0a8a03a92bbc4cd883e278e864 /view/tpl/app.tpl
parent63efbdffe6ef653e1556a7b34ea59b75b234e759 (diff)
downloadvolse-hubzilla-bae28965abb179948ccd50eabdc2c038a58b9b03.tar.gz
volse-hubzilla-bae28965abb179948ccd50eabdc2c038a58b9b03.tar.bz2
volse-hubzilla-bae28965abb179948ccd50eabdc2c038a58b9b03.zip
issue #446 apps usability - disable app if attached to a plugin that is uninstalled, allow system apps to be soft deleted and undeleted from the edit pane.
Diffstat (limited to 'view/tpl/app.tpl')
-rw-r--r--view/tpl/app.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index 3e6b71b29..cfb652913 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -1,5 +1,5 @@
<div class="app-container">
- <div class="app-detail">
+ <div class="app-detail{{if $deleted}} app-deleted{{/if}}">
<a href="{{$app.url}}" {{if $ap.target}}target="{{$ap.target}}" {{/if}}{{if $app.desc}}title="{{$app.desc}}{{if $app.price}} ({{$app.price}}){{/if}}"{{else}}title="{{$app.name}}"{{/if}}><img src="{{$app.photo}}" width="80" height="80" />
<div class="app-name" style="text-align:center;">{{$app.name}}</div>
</a>
@@ -16,7 +16,7 @@
<input type="hidden" name="papp" value="{{$app.papp}}" />
{{if $install}}<button type="submit" name="install" value="{{$install}}" class="btn btn-default" 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" title="{{$edit}}" ><i class="fa fa-pencil" ></i></button>{{/if}}
- {{if $delete}}<button type="submit" name="delete" value="{{$delete}}" class="btn btn-default" title="{{$delete}}" ><i class="fa fa-trash-o drop-icons"></i></button>{{/if}}
+ {{if $delete}}<button type="submit" name="delete" value="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" class="btn btn-default" title="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" ><i class="fa fa-trash-o drop-icons"></i></button>{{/if}}
</form>
</div>
{{/if}}