summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-11 12:13:28 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-11 12:13:28 +0200
commitce6162603ec08565f9ef9ff406e321b4bae2f038 (patch)
tree8725fc92320b0cf19909615098efecfdbeceb17b /application/views
parentf953eba8d7c9e362fd18a311367a6fc7b9b9cac4 (diff)
Add filesize to history view
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r--application/views/file/upload_history.php2
-rw-r--r--application/views/file_plaintext/upload_history.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/application/views/file/upload_history.php b/application/views/file/upload_history.php
index 1dcaa8053..8f0f8e3d7 100644
--- a/application/views/file/upload_history.php
+++ b/application/views/file/upload_history.php
@@ -6,6 +6,7 @@
<th>Mimetype
<th>Date</th>
<th>Hash</th>
+ <th>Size</th>
</tr>
<?php foreach($query as $key => $item): ?>
@@ -16,6 +17,7 @@
<td><?php echo $item["mimetype"]; ?></td>
<td><?php echo $item["date"]; ?></td>
<td><?php echo $item["hash"]; ?></td>
+ <td><?php echo $item["filesize"]; ?></td>
</tr>
<?php endforeach; ?>
</table>
diff --git a/application/views/file_plaintext/upload_history.php b/application/views/file_plaintext/upload_history.php
index e03311464..4e9308d91 100644
--- a/application/views/file_plaintext/upload_history.php
+++ b/application/views/file_plaintext/upload_history.php
@@ -4,7 +4,8 @@ echo
.mb_str_pad("Filename", $lengths["filename"])." | "
.mb_str_pad("Mimetype", $lengths["mimetype"])." | "
.mb_str_pad("Date", $lengths["date"])." | "
- .mb_str_pad("Hash", $lengths["hash"])."\n";
+ .mb_str_pad("Hash", $lengths["hash"])." | "
+ .mb_str_pad("Size", $lengths["filesize"])."\n";
foreach($query as $key => $item) {
echo
@@ -12,6 +13,7 @@ foreach($query as $key => $item) {
.mb_str_pad($item["filename"], $lengths["filename"])." | "
.mb_str_pad($item["mimetype"], $lengths["mimetype"])." | "
.$item["date"]." | "
- .$item["hash"]."\n";
+ .$item["hash"]." | "
+ .$item["filesize"]."\n";
}