no link if there is no detailpage property set - fixes #15953

This commit is contained in:
Thomas Müller 2015-05-04 11:35:30 +02:00
parent 7376ea9b26
commit c2fd7b1d12
1 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,13 @@ script(
<div class="app-image{{#if previewAsIcon}} app-image-icon{{/if}} hidden">
</div>
{{/if}}
<h2 class="app-name"><a href="{{detailpage}}" target="_blank">{{name}}</a></h2>
<h2 class="app-name">
{{#if detailpage}}
<a href="{{detailpage}}" target="_blank">{{name}}</a>
{{else}}
{{name}}
{{/if}}
</h2>
<div class="app-version"> {{version}}</div>
{{#if profilepage}}<a href="{{profilepage}}" target="_blank" rel="noreferrer">{{/if}}
<div class="app-author"><?php p($l->t('by')); ?> {{author}}