Enh: Added featured module flag to marketplace view

This commit is contained in:
Lucas Bartholemy 2019-05-29 10:54:17 +02:00
parent 933e13711e
commit 445cb5929a
2 changed files with 10 additions and 4 deletions

View File

@ -7,6 +7,7 @@ HumHub Change Log
- Fix: LinkedIn API call to v1 deprecated use v2 (@Felli)
- Fix #3531: File module Fil: isAssignedTo method broken
- Fix: Added missing admin group title encodings
- Enh: Added featured module flag to marketplace view
1.3.13 (May 3, 2019)

View File

@ -51,10 +51,9 @@ use yii\helpers\Html;
<div class="media-body">
<h4 class="media-heading"><?= $module['name']; ?>
<?php if (Yii::$app->moduleManager->hasModule($module['id'])): ?>
<small><span
class="label label-info"><?= Yii::t('AdminModule.module_listOnline', 'Installed'); ?>
</small></span>
<?php if (!empty($module['featured'])): ?>
<i class="fa fa-star text-info" aria-hidden="true"></i>
&nbsp;
<?php endif; ?>
</h4>
@ -62,6 +61,12 @@ use yii\helpers\Html;
<div class="module-controls">
<?= Yii::t('AdminModule.views_module_listOnline', 'Latest version:'); ?> <?= $module['latestVersion']; ?>
<?php if (Yii::$app->moduleManager->hasModule($module['id'])): ?>
&middot; <?= Yii::t('AdminModule.module_listOnline', 'Installed'); ?>
</span>
<?php endif; ?>
<?php if (isset($module['purchased']) && $module['purchased']) : ?>
&nbsp; Purchased
<?php endif; ?>