Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50770 - website/public_html/beta/doc
From: daniel_james_at_[hidden]
Date: 2009-01-25 12:40:40


Author: danieljames
Date: 2009-01-25 12:40:40 EST (Sun, 25 Jan 2009)
New Revision: 50770
URL: http://svn.boost.org/trac/boost/changeset/50770

Log:
Support all the sort fields, even though they're not all displayed as there might still be links using them.
Text files modified:
   website/public_html/beta/doc/libraries.php | 17 ++++++++++++++---
   1 files changed, 14 insertions(+), 3 deletions(-)

Modified: website/public_html/beta/doc/libraries.php
==============================================================================
--- website/public_html/beta/doc/libraries.php (original)
+++ website/public_html/beta/doc/libraries.php 2009-01-25 12:40:40 EST (Sun, 25 Jan 2009)
@@ -17,8 +17,18 @@
     'header-only' => 'Header Only Libraries',
     'autolink' => 'Automatic Linking');
 $sort_fields = Array(
+ 'name' => 'Name',
+ 'boost-version' => 'First Release',
+ 'std-proposal' => 'STD Proposal',
+ 'std-tr1' => 'STD::TR1',
+ 'header-only' => 'Header Only Use',
+ 'autolink' => 'Automatic Linking',
+ 'key' => 'Key'
+);
+$display_sort_fields = Array(
     '' => 'Name',
- 'boost-version' => 'First Release');
+ 'boost-version' => 'First Release'
+);
 
 // View
 
@@ -48,7 +58,8 @@
 
 // Sort
 
-$sort_value = isset($_REQUEST['sort']) ? $_REQUEST['sort'] : '';
+$sort_value = isset($_REQUEST['sort']) && $_REQUEST['sort'] ?
+ $_REQUEST['sort'] : 'name';
 
 if(!isset($sort_fields[$sort_value])) {
     echo 'Invalid sort field.'; exit(0);
@@ -201,7 +212,7 @@
                   <div id="sort-options">
                     <div class="label">Sort by:</div>
                     <ul class="menu">
- <?php foreach($sort_fields as $key => $description) : ?>
+ <?php foreach($display_sort_fields as $key => $description) : ?>
                       <li><?php option_link($description, 'sort', $key); ?></li>
                     <?php endforeach; ?>
                     </ul>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk