diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-03 12:12:05 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-03 12:12:05 +0100 |
commit | dce9a70ff59658249abeb58af46144eea16c721b (patch) | |
tree | 379a4c0a0c94a5a2c10563286da1c43c14ab42d6 /view | |
parent | 631a8278d34da70ff312b0dcc11f8e486a4d4597 (diff) | |
download | volse-hubzilla-dce9a70ff59658249abeb58af46144eea16c721b.tar.gz volse-hubzilla-dce9a70ff59658249abeb58af46144eea16c721b.tar.bz2 volse-hubzilla-dce9a70ff59658249abeb58af46144eea16c721b.zip |
check for app-icons in app_list() instead of app_render()
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/app.tpl | 2 | ||||
-rw-r--r-- | view/tpl/navapps.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl index 434653e1e..a389695ee 100644 --- a/view/tpl/app.tpl +++ b/view/tpl/app.tpl @@ -1,6 +1,6 @@ <div class="app-container"> <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}}>{{if $icon}}<i class="app-icon fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="80" height="80" />{{/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}}>{{if $app.icon}}<i class="app-icon fa fa-fw fa-{{$app.icon}}"></i>{{else}}<img src="{{$app.photo}}" width="80" height="80" />{{/if}} <div class="app-name" style="text-align:center;">{{$app.name}}</div> </a> </div> diff --git a/view/tpl/navapps.tpl b/view/tpl/navapps.tpl index db5c7ae17..07110706c 100644 --- a/view/tpl/navapps.tpl +++ b/view/tpl/navapps.tpl @@ -1,6 +1,6 @@ {{foreach $apps as $app}} - <li><a href="{{$app.url}}">{{if $icon}}<i class="app-icon fa fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" />{{/if}} {{$app.name}}</a></li> + <li><a href="{{$app.url}}">{{if $app.icon}}<i class="fa fa-{{$app.icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" />{{/if}} {{$app.name}}</a></li> {{/foreach}} {{if $localuser}} <li class="divider"></li> |