mirror of
https://github.com/humhub/humhub.git
synced 2025-03-21 23:49:55 +01:00
More human readable file sizes
Moves from 33.634178 kilobytes to 34 KB
This commit is contained in:
parent
8e7932cbea
commit
a1bef0f89a
@ -38,7 +38,7 @@ $object = $this->context->object;
|
||||
<li class="mime <?php echo \humhub\libs\MimeHelper::getMimeIconClassByExtension($file->getExtension()); ?>"><a
|
||||
href="<?php echo $file->getUrl(); ?>" target="_blank"><span
|
||||
class="filename"><?php echo Html::encode(Helpers::trimText($file->file_name, 40)); ?></span></a>
|
||||
<span class="time" style="padding-right: 20px;"> - <?php echo Yii::$app->formatter->asSize($file->size); ?></span>
|
||||
<span class="time" style="padding-right: 20px;"> - <?php echo Yii::$app->formatter->asShortSize($file->size, $decimals = 1); ?></span>
|
||||
|
||||
<?php if ($file->getExtension() == "mp3") : ?>
|
||||
<!-- Integrate jPlayer -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user