This commit is contained in:
Carlos Ferreira 2018-07-25 23:02:24 +02:00 committed by GitHub
parent 7c8a5c9749
commit 88a6cabc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,11 +10,11 @@ use humhub\modules\content\components\ContentContainerController;
use humhub\modules\space\models\Space;
use humhub\modules\space\widgets\Image;
use humhub\widgets\TimeAgo;
use yii\helpers\Url;
?>
<?php if ($clickable) : ?>
<a href="<?= \yii\helpers\Url::to(['/activity/link', 'id' => $record->id])?>">
<a href="<?= Url::to(['/activity/link', 'id' => $record->id])?>">
<?php endif; ?>
<li class="activity-entry" data-stream-entry data-action-component="activity.ActivityStreamEntry" data-content-key="<?= $record->content->id ?>">
<div class="media">
@ -44,12 +44,14 @@ use humhub\widgets\TimeAgo;
<div class="media-body text-break">
<!-- Show content -->
<?= $content; ?><br>
<?= $content; ?>
<br>
<!-- show time -->
<?= TimeAgo::widget(['timestamp' => $record->content->created_at]); ?>
</div>
</div>
</li>
<?php if ($clickable) : ?></a>
<?php endif; ?>
<?php if ($clickable) : ?>
</a>
<?php endif; ?>