summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-10 17:20:36 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-10 17:20:36 +0000
commitd46b903a38c726f7811d5e92d7d7d4830fafc8c1 (patch)
tree195459c5f7e817f11b81232ecfa85d7a749d0911
parent62107e0cdbb0bf3e0ebaffeb182fb1ee5c51e608 (diff)
downloadpkgsubmit-d46b903a38c726f7811d5e92d7d7d4830fafc8c1.tar
pkgsubmit-d46b903a38c726f7811d5e92d7d7d4830fafc8c1.tar.gz
pkgsubmit-d46b903a38c726f7811d5e92d7d7d4830fafc8c1.tar.bz2
pkgsubmit-d46b903a38c726f7811d5e92d7d7d4830fafc8c1.tar.xz
pkgsubmit-d46b903a38c726f7811d5e92d7d7d4830fafc8c1.zip
better position for file view
-rw-r--r--js/pkgsubmit.js2
-rw-r--r--log_files.php2
-rw-r--r--style.css6
3 files changed, 5 insertions, 5 deletions
diff --git a/js/pkgsubmit.js b/js/pkgsubmit.js
index 19e9382..851462c 100644
--- a/js/pkgsubmit.js
+++ b/js/pkgsubmit.js
@@ -140,7 +140,7 @@ function show_log_file(ev) {
var el = $("#" + elId);
if (c.length == 0) {
- $(this).after($("<div />", {
+ $(this).next().after($("<div />", {
id: cId
})
.addClass(isShortFile($(this).attr("href")) ? "short" : "")
diff --git a/log_files.php b/log_files.php
index 4648a6f..4c301cf 100644
--- a/log_files.php
+++ b/log_files.php
@@ -134,7 +134,7 @@ function print_list($list)
$top = basename($f);
$l[] = sprintf('<li><span class="dir">%s</span>%s</li>', $top, print_list($list[$top]));
} elseif (file_exists($f)) {
- $l[] = sprintf('<li><a href="%s" rel="nofollow" class="view-inline">%s</a> (%s)</li>',
+ $l[] = sprintf('<li><a href="%s" rel="nofollow" class="view-inline">%s</a> <span class="filesize">(%s)</span></li>',
'uploads' . str_replace($upload_dir, '', $f),
basename($f),
_format_bytes(filesize($f))
diff --git a/style.css b/style.css
index 6fb8f1f..d41f680 100644
--- a/style.css
+++ b/style.css
@@ -107,13 +107,13 @@ span.dir { font-weight: bold; }
}
.controls {
- float: right;
+ float: left;
text-align: right;
}
.short .controls { display: none; }
-.gotobo, .gototop {
- margin-left: 0.5em;
+.gotobo, .gototop, .close {
+ margin: 0.6em 1em 0.6em 0;
font-size: 90%;
}