From 512f2eb6433e4cf4e26ad97d57bf4f47f71c3877 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 15 Jul 2006 12:46:07 +0000 Subject: [PATCH] Smaller page list git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@106 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/misc.inc.php | 13 +++++++------ banana/post.inc.php | 14 +++++++------- banana/spool.inc.php | 4 ++-- css/style.css | 5 +++++ 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/banana/misc.inc.php b/banana/misc.inc.php index b280c9a..0786659 100644 --- a/banana/misc.inc.php +++ b/banana/misc.inc.php @@ -399,22 +399,23 @@ function displayShortcuts($first = -1) $res .= ' > ' . makeHREF(Array('group' => $group), $group); if (is_null($artid)) { if (sizeof($banana->spool->overview)>$banana->tmax) { - $res .= ' > Pages
'; + $res .= ' > Pages'; + $res .= '
'; $n = intval(log(count($banana->spool->overview), 10))+1; $i = 1; for ($ndx = 1 ; $ndx <= sizeof($banana->spool->overview) ; $ndx += $banana->tmax) { if ($first==$ndx) { - $fmt = $i . ' '; + $res .= '' . $i . ' '; } else { - $fmt = makeHREF(Array('group' => $group, + $res .= makeHREF(Array('group' => $group, 'first' => $ndx), $i, - '%0' . $n . 'u-%0' . $n . 'u') + $ndx . '-' . min($ndx+$banana->tmax-1,sizeof($banana->spool->overview))) . ' '; } $i++; - $res .= sprintf($fmt, $ndx, min($ndx+$banana->tmax-1,sizeof($banana->spool->overview))); } + $res .= '
'; } if (!is_null($action)) { if ($action == 'new') { @@ -425,7 +426,7 @@ function displayShortcuts($first = -1) if (!is_null($action)) { $res .= ' > ' . makeHREF(Array('group' => $group, 'artid' => $artid), - 'Message') + _b_('Message')) . ' > '; if ($action == 'new') { $res .= 'Répondre'; diff --git a/banana/post.inc.php b/banana/post.inc.php index 8df86dd..87c3591 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -327,10 +327,10 @@ class BananaPost { global $banana; $ret = '
'; - $actions = Array('prevThread' => Array('prev_thread', 'Discussion précédente'), - 'prevPost' => Array('prev', 'Article précédent'), - 'nextPost' => Array('next', 'Article suivant'), - 'nextThread' => Array('next_thread', 'Discussion suivante')); + $actions = Array('prevThread' => Array('prev_thread', _b_('Discussion précédente')), + 'prevPost' => Array('prev', _b_('Article précédent')), + 'nextPost' => Array('next', _b_('Article suivant')), + 'nextThread' => Array('next_thread', _b_('Discussion suivante'))); foreach ($actions as $method=>$params) { $id = $banana->spool->$method($this->id); if (!is_null($id)) { @@ -382,18 +382,18 @@ class BananaPost . makeImgLink(Array('group' => $banana->state['group'], 'action' => 'new'), 'post.gif', - 'Nouveau message') + _b_('Nouveau message')) . makeImgLink(Array('group' => $banana->state['group'], 'artid' => $this->id, 'action' => 'new'), 'reply.gif', - 'Répondre'); + _b_('Répondre')); if ($this->checkCancel()) { $res .= makeImgLink(Array('group' => $banana->state['group'], 'artid' => $this->id, 'action' => 'cancel'), 'cancel.gif', - 'Annuler'); + _b_('Annuler')); } $res .= '
' . formatDisplayHeader('subject', $this->headers['subject']) diff --git a/banana/spool.inc.php b/banana/spool.inc.php index 0bdfe09..ef3e36f 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -399,9 +399,9 @@ class BananaSpool $new = '
' . makeImgLink(Array('group' => $this->group, - 'action' => 'new'), + 'action' => 'new'), 'post.gif', - 'Nouveau message'); + _b_('Nouveau message')); $new .= '
'; if (is_null($_ref)) { diff --git a/css/style.css b/css/style.css index 32baf71..004b3c4 100644 --- a/css/style.css +++ b/css/style.css @@ -13,6 +13,11 @@ div.banana_scuts { div.banana_scuts .title { font-weight: bold; } +div.banana_scuts .pages { + font-size: 80%; + text-align: center; + padding-top: 0.1em; +} div.banana_action { float: right; } div.banana_menu { float: left; } -- 2.1.4