aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-21 20:54:09 -0700
committerfriendica <info@friendica.com>2014-05-21 20:54:09 -0700
commit751fda97045ad4e399e9a01cc14d8eb058b361a8 (patch)
tree02f0066e82d006fa9959e7742d520bebf6f25e89 /view
parente9b006a5eba1672258568ece39499d2488bd95eb (diff)
downloadvolse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.tar.gz
volse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.tar.bz2
volse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.zip
more app work
Diffstat (limited to 'view')
-rw-r--r--view/tpl/app.tpl6
-rw-r--r--view/tpl/app_select.tpl3
2 files changed, 8 insertions, 1 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl
index e375bd013..967ccc67c 100644
--- a/view/tpl/app.tpl
+++ b/view/tpl/app.tpl
@@ -1,11 +1,15 @@
<div class="app-container">
-<a href="{{if $app.alt_url}}{{$app.alt_url}}{{else}}{{$app.url}}{{/if}}" {{if $app.hover}}title="{{$app.hover}}"{{/if}}><img src="{{$app.photo}}" width="80" height="80" />
+<a href="{{if $app.alt_url}}{{$app.alt_url}}{{else}}{{$app.url}}{{/if}}" {{if $app.desc}}title="{{$app.desc}}{{if $app.price}} ({{$app.price}}){{/if}}"{{/if}}><img src="{{$app.photo}}" width="80" height="80" />
<div class="app-name">{{$app.name}}</div>
</a>
+{{if $purchase}}
+<a href="{{$app.page}}" class="btn btn-default" title="{{$purchase}}" ><i class="icon-external"></i></a>
+{{/if}}
{{if $install || $update || $delete }}
<form action="appman" method="post">
<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="icon-download-alt" ></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="icon-pencil" ></i></button>{{/if}}
{{if $delete}}<button type="submit" name="delete" value="{{$delete}}" class="btn btn-default" title="{{$delete}}" ><i class="icon-remove drop-icons"></i></button>{{/if}}
</form>
{{/if}}
diff --git a/view/tpl/app_select.tpl b/view/tpl/app_select.tpl
index d6eb2c31a..4cd945388 100644
--- a/view/tpl/app_select.tpl
+++ b/view/tpl/app_select.tpl
@@ -3,6 +3,9 @@
<ul>
<li><a href="apps">{{$system}}</a></li>
<li><a href="apps/personal">{{$personal}}</a></li>
+<br />
+<li><a href="appman">{{$new}}</a></li>
+<li><a href="apps/personal/edit">{{$edit}}</a></li>
</ul>
</div>