Enh: Added 'archived' badge to archived spaces in directory

This commit is contained in:
Lucas Bartholemy 2017-03-18 21:03:27 +01:00
parent 38f3548d69
commit 91f5cf7efb
2 changed files with 7 additions and 1 deletions

View File

@ -97,6 +97,7 @@ HumHub Change Log
- Fix: Added missing file download http caching
- Enh: Added console email test command
- Enh: Added stream module defaultStreamSuppressQueryIgnore to ease overwrites
- Enh: Added 'archived' badge to archived spaces in directory
1.2.0-beta.2 (February 24, 2017)

View File

@ -60,7 +60,12 @@ use humhub\modules\directory\widgets\SpaceTagList;
<?php endif; ?>
<div class="media-body">
<h4 class="media-heading"><a href="<?= $space->getUrl(); ?>"><?= Html::encode($space->name); ?></a></h4>
<h4 class="media-heading"><a href="<?= $space->getUrl(); ?>"><?= Html::encode($space->name); ?></a>
<?php if ($space->isArchived()) : ?>
<span class="label label-warning"><?= Yii::t('ContentModule.widgets_views_label', 'Archived'); ?></span>
<?php endif; ?>
</h4>
<h5><?= Html::encode(Helpers::truncateText($space->description, 100)); ?></h5>
<?= SpaceTagList::widget(['space' => $space]); ?>
</div>