diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-14 19:11:01 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-14 19:11:01 -0800 |
commit | bae28965abb179948ccd50eabdc2c038a58b9b03 (patch) | |
tree | dfb9503bec536f0a8a03a92bbc4cd883e278e864 /view | |
parent | 63efbdffe6ef653e1556a7b34ea59b75b234e759 (diff) | |
download | volse-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')
-rw-r--r-- | view/theme/redbasic/css/style.css | 3 | ||||
-rw-r--r-- | view/tpl/app.tpl | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index b5f25073d..3ae52d5cc 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1067,11 +1067,12 @@ a.rconnect:hover, a.rateme:hover, div.rateme:hover { .contact-block-content { margin-top: 10px; } -.contact-block-img.archived { +.contact-block-img.archived, .app-deleted { opacity: 0.3; filter:alpha(opacity=30); } + .profile-match-connect { margin-top: 5px; } .reshared-content { margin-left: 20px; } 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}} |