diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-08-05 19:40:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-08-05 21:51:57 +0200 |
commit | 768bf6485cc73ad9b508b227fed8b3fcc3c6b65f (patch) | |
tree | e9bbdb3169d867a24167af9773f8140ec88fc7d9 /application/views | |
parent | ae244fdb9fd28db4e1323b5d4da5803699be3412 (diff) |
Add history page with thumbnails of images
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r-- | application/views/file/nav_history.php | 18 | ||||
-rw-r--r-- | application/views/file/upload_history.php | 1 | ||||
-rw-r--r-- | application/views/file/upload_history_thumbnails.php | 19 |
3 files changed, 38 insertions, 0 deletions
diff --git a/application/views/file/nav_history.php b/application/views/file/nav_history.php new file mode 100644 index 000000000..1a3e55c0b --- /dev/null +++ b/application/views/file/nav_history.php @@ -0,0 +1,18 @@ +<ul class="nav nav-tabs"> +<?php +$nav = array( + "List" => "file/upload_history", + "Thumbnails" => "file/upload_history_thumbnails", +); + +$CI =& get_instance(); + +foreach ($nav as $key => $item) { + ?> + <li <?php echo $CI->uri->uri_string() == $item ? 'class="active"' : ''; ?>> + <a href="<?php echo site_url($item); ?>"><?php echo $key; ?></a> + </li> + <?php +} +?> +</ul> diff --git a/application/views/file/upload_history.php b/application/views/file/upload_history.php index 8e030d360..344afc28a 100644 --- a/application/views/file/upload_history.php +++ b/application/views/file/upload_history.php @@ -1,4 +1,5 @@ <?php register_js_include("/data/js/jquery.tablesorter.min.js"); ?> +<?php include 'nav_history.php'; ?> <?php echo form_open("file/do_delete") ?> <table id="upload_history" class="table table-striped tablesorter"> <thead> diff --git a/application/views/file/upload_history_thumbnails.php b/application/views/file/upload_history_thumbnails.php new file mode 100644 index 000000000..55ee90191 --- /dev/null +++ b/application/views/file/upload_history_thumbnails.php @@ -0,0 +1,19 @@ +<?php include 'nav_history.php'; ?> +<!-- Comment markers background: http://stackoverflow.com/a/14776780/953022 --> +<div class="upload_history_thumbnails"><!-- + <?php foreach($query as $key => $item): ?> + --><a href="<?php echo site_url("/".$item["id"]); ?>" title="<?php echo htmlentities($item["filename"]); ?>" data-content="<?php echo htmlentities($item["tooltip"]); ?>" ><img class="thumb" src="<?php echo site_url("file/thumbnail/".$item["id"]); ?>"></a><!-- + <?php endforeach; ?> +--></div> + +<div class="row-fluid"> + <div class="span12 alert alert-block alert-info"> + <h4 class="alert-heading">Notice!</h4> + <p> + Currently only jpeg, png and gif images are displayed here. If you are + looking for something else, please switch to the + <a href="<?php echo site_url("file/upload_history"); ?>">list view</a> + which contains your complete history. + </p> + </div> +</div> |