Skip to content

Commit

Permalink
Merge pull request #217 from humhub/fix/216-render-markdown-description
Browse files Browse the repository at this point in the history
Fix image space rending on wall entry
  • Loading branch information
luke- authored Apr 22, 2024
2 parents a85ba80 + ec85d65 commit e21ffa0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=========

0.16.7 - Unreleased
-------------------------
- Fix #216: Fix image space rending on wall entry

0.16.6 - March 14, 2024
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"organisation",
"sharing"
],
"version": "0.16.6",
"version": "0.16.7",
"humhub": {
"minVersion": "1.14"
},
Expand Down
13 changes: 7 additions & 6 deletions widgets/views/wallEntryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
</div>
<?php endif; ?>

<strong><?= FileHelper::createLink($file, null, ['style' => 'text-decoration: underline']); ?></strong><br />
<small><?= Yii::t('CfilesModule.base', 'Size: {size}', ['size' => Yii::$app->formatter->asShortSize($fileSize, 1)]); ?></small><br />
<strong><?= FileHelper::createLink($file, null, ['style' => 'text-decoration: underline']); ?></strong><br>
<small><?= Yii::t('CfilesModule.base', 'Size: {size}', ['size' => Yii::$app->formatter->asShortSize($fileSize, 1)]); ?></small><br>

<?php if (!empty($cFile->description)): ?>
<br />
<?= RichText::convert($cFile->description, RichText::FORMAT_HTML); ?>
<br />
<br>
<div data-ui-markdown>
<?= RichText::convert($cFile->description, RichText::FORMAT_HTML) ?>
</div>
<?php endif; ?>

<br />
<br>

<?php if ($folderUrl) : ?>
<?= Html::a(Yii::t('CfilesModule.base', 'Open file folder'), $folderUrl, ['class' => 'btn btn-sm btn-default', 'data-ui-loader' => '']); ?>
Expand Down

0 comments on commit e21ffa0

Please sign in to comment.