Use the shortdesc in the left menu.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 7 Mar 2009 20:47:37 +0000 (20:47 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 7 Mar 2009 20:47:37 +0000 (20:47 +0000)
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2422 8f5c7a92-453e-0410-a47f-ad33c8a6b003

archives/html/list_index.php
archives/templates/html/top_config.html

index 3a06aa7ae3c48dc6d8372b74d5ec73805890e759..fdd76963635505d4f605717b3ac6e9450da5fe68 100644 (file)
@@ -60,7 +60,13 @@ foreach ($groups as $group) {
        if ($group["id"] == $mygroup) {
                $tpl->setCurrentBlock('top_list');
                foreach ($group["lists"] as $list) {
+                       // use the shortdesc if it exists
+                       if (isset($lists[$list]["shortdesc"]))
+                               $desc = $lists[$list]["shortdesc"];
+                       else
+                               $desc = $list;
                        $tpl->setVariable('top_name', $list);
+                       $tpl->setVariable('top_desc', $desc);
                        $tpl->parse('top_list');
                }
        }
index 36157195eef984f59f1b0489597b3f45d5310398..50592b3f0e8b6612ce6772b6722ba7658a5294c4 100644 (file)
@@ -96,7 +96,7 @@
        <li><a href="/{top_group_firstlist}/">{top_groupname}</a>
        <ul>
                <!-- BEGIN top_list -->
-               <li><a href="/{top_name}/">{top_name}</a></li>
+               <li><a href="/{top_name}/">{top_desc}</a></li>
                <!-- END top_list -->
        </ul>
        </li>