Smaller page list
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 15 Jul 2006 12:46:07 +0000 (12:46 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:59 +0000 (00:34 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@106 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/misc.inc.php
banana/post.inc.php
banana/spool.inc.php
css/style.css

index b280c9a..0786659 100644 (file)
@@ -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<br />';
+                $res .= ' > Pages';
+                $res .= '<div class="pages">';
                 $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 .= '<strong>' . $i . '</strong> ';
                     } 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 .= '</div>';
             }
             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';
index 8df86dd..87c3591 100644 (file)
@@ -327,10 +327,10 @@ class BananaPost
     {
         global $banana;
         $ret = '<div class="banana_menu">';
-        $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 .= '</div>'
              . formatDisplayHeader('subject', $this->headers['subject'])
index 0bdfe09..ef3e36f 100644 (file)
@@ -399,9 +399,9 @@ class BananaSpool
        
         $new  = '<div class="banana_action">'
               . makeImgLink(Array('group'  => $this->group,
-                               'action' => 'new'),
+                                  'action' => 'new'),
                             'post.gif',
-                            'Nouveau message');
+                            _b_('Nouveau message'));
         $new .= '</div>';
         
         if (is_null($_ref)) {
index 32baf71..004b3c4 100644 (file)
@@ -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; }