mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-13 16:27:54 +00:00
format document size number
This commit is contained in:
parent
488e090f97
commit
81acd07d8a
@ -481,7 +481,7 @@ if ($config->webui->index->enabled)
|
||||
<?php } ?>
|
||||
<?php if (!empty($document->size)) { ?>
|
||||
<h3><?php echo _('Size') ?></h3>
|
||||
<div><?php echo $document->size ?></div>
|
||||
<div><?php echo sprintf('%d bytes', number_format($document->size)) ?></div>
|
||||
<?php } ?>
|
||||
<?php if (!empty($document->time)) { ?>
|
||||
<h3><?php echo _('Time') ?></h3>
|
||||
@ -497,7 +497,7 @@ if ($config->webui->index->enabled)
|
||||
<?php foreach ($snap as $file) { ?>
|
||||
<li>
|
||||
<a rel="nofollow" href="api.php?action=snap&method=download&source=<?php echo $file->source ?>&id=<?php echo $file->id ?>&time=<?php echo $file->time ?>">
|
||||
<?php echo sprintf('%s (tar.gz / %s bytes)', date('c', $file->time), number_format($file->size)) ?>
|
||||
<?php echo sprintf('%s (tar.gz / %d bytes)', date('c', $file->time), number_format($file->size)) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
Loading…
Reference in New Issue
Block a user