summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-07-05 18:57:37 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-10 08:51:43 +0200
commit3a865d90a6dc1493c06ab5cb500d63836b7c8c9b (patch)
treeb0cc51aaa5b4d68f9d82d391debfdd9dfc7a2924
parent2df7dacc1056a78c1505b54f67b79316fda6383d (diff)
Make delete button fixed on upload history page
Also make the navigation fixed because otherwise this looks hideous and the space is already occupied anyway. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/views/file/nav_history.php2
-rw-r--r--application/views/file/upload_history.php7
-rw-r--r--application/views/file/upload_history_thumbnails.php18
-rw-r--r--public_html/data/css/style.css16
4 files changed, 34 insertions, 9 deletions
diff --git a/application/views/file/nav_history.php b/application/views/file/nav_history.php
index bbb695fd6..1a3e55c0b 100644
--- a/application/views/file/nav_history.php
+++ b/application/views/file/nav_history.php
@@ -1,4 +1,4 @@
-<ul class="nav nav-tabs nav-history">
+<ul class="nav nav-tabs">
<?php
$nav = array(
"List" => "file/upload_history",
diff --git a/application/views/file/upload_history.php b/application/views/file/upload_history.php
index 060cd25c3..253c0aa9e 100644
--- a/application/views/file/upload_history.php
+++ b/application/views/file/upload_history.php
@@ -1,5 +1,10 @@
-<?php include 'nav_history.php'; ?>
<?php echo form_open("file/do_delete") ?>
+ <div class="nav-history">
+ <div class="container">
+ <input class="btn btn-danger pull-right" type="submit" value="Delete checked" name="process">
+ <?php include 'nav_history.php'; ?>
+ </div>
+ </div>
<div class="table-responsive">
<table id="upload_history" class="table table-striped tablesorter {sortlist: [[4,1]]}">
<thead>
diff --git a/application/views/file/upload_history_thumbnails.php b/application/views/file/upload_history_thumbnails.php
index 04846e944..9fb9c5450 100644
--- a/application/views/file/upload_history_thumbnails.php
+++ b/application/views/file/upload_history_thumbnails.php
@@ -1,11 +1,15 @@
-<div class="pull-right">
- <?php echo form_open("file/do_delete/", array("id" => "delete_form", "style" => "display: inline")); ?>
- <button type="submit" class="btn btn-danger" id="delete_button" style="display: none">Delete selected</button>
- </form>
- <button class="btn btn-default" id="toggle_delete_mode" style="display: inline">Delete mode</button>
-</div>
+<div class="nav-history">
+ <div class="container">
+ <div class="pull-right">
+ <?php echo form_open("file/do_delete/", array("id" => "delete_form", "style" => "display: inline")); ?>
+ <button type="submit" class="btn btn-danger" id="delete_button" style="display: none">Delete selected</button>
+ </form>
+ <button class="btn btn-default" id="toggle_delete_mode" style="display: inline">Delete mode</button>
+ </div>
-<?php include 'nav_history.php'; ?>
+ <?php include 'nav_history.php'; ?>
+ </div>
+</div>
<?php include 'fragments/thumbnail.php'; ?>
<div class="row-fluid">
diff --git a/public_html/data/css/style.css b/public_html/data/css/style.css
index 2996ff3d5..48bebdb12 100644
--- a/public_html/data/css/style.css
+++ b/public_html/data/css/style.css
@@ -59,7 +59,17 @@
}
.nav-history {
+ height: 63px;
+}
+
+.nav-history .container {
+ padding-top: 20px;
margin-bottom: 1em;
+ position: fixed;
+ background: #fff;
+ left: 0;
+ right: 0;
+ margin-top: -19px;
}
.navbar-paste {
@@ -88,6 +98,12 @@
.navbar-fixed-top {
position: relative;
}
+ .nav-history .container {
+ position: relative;
+ }
+ .nav-history {
+ height: auto;
+ }
}
@media (min-width: 768px) {