[29102] trunk/www/includes

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 14 22:07:36 PDT 2007


Revision: 29102
          http://trac.macosforge.org/projects/macports/changeset/29102
Author:   jmpp at macports.org
Date:     2007-09-14 22:07:36 -0700 (Fri, 14 Sep 2007)

Log Message:
-----------

 * New guide's URL is likely to change, so abstract it into a variable and use it;
 * Comment on the two ideas I have for combining the new ticketing guidelines on the new guide and trac's 'newticket' handler page;
 * Add the "Become a Member" new (and hopefully last) shortcut;
 * Reorder the shortcuts a bit once again... I think they look nice like this, but I've been looking at this for far too long already and therefore would appreciate a pair of fresh eyes looking at the sidebar,

Modified Paths:
--------------
    trunk/www/includes/common.inc
    trunk/www/includes/header.inc

Modified: trunk/www/includes/common.inc
===================================================================
--- trunk/www/includes/common.inc	2007-09-15 04:35:54 UTC (rev 29101)
+++ trunk/www/includes/common.inc	2007-09-15 05:07:36 UTC (rev 29102)
@@ -32,6 +32,7 @@
 $bz2_tarball = $downloads . 'MacPorts-' . $mp_version_major . '.tar.bz2';
 $gz_tarball = $downloads . 'MacPorts-' . $mp_version_major . '.tar.gz';
 $checksums = $downloads .  'MacPorts-' . $mp_version_major . '.chk.txt';
+$guide_url = 'http://geeklair.net/new_macports_guide/';
 
 
 ######################################################################

Modified: trunk/www/includes/header.inc
===================================================================
--- trunk/www/includes/header.inc	2007-09-15 04:35:54 UTC (rev 29101)
+++ trunk/www/includes/header.inc	2007-09-15 05:07:36 UTC (rev 29102)
@@ -1,7 +1,7 @@
 <?php
 /* $Id$ */
 $PHP_SELF = $_SERVER['PHP_SELF'];
-global $mp_version_major, $trac_url, $svn_url, $downloads;
+global $mp_version_major, $trac_url, $svn_url, $downloads, $guide_url;
 ?>
 
 <h1>
@@ -27,7 +27,7 @@
                     'Home' => 'index.php',
                     'Get MacPorts' => 'getmp.php',
                     'Available Ports' => 'ports.php',
-                    'Documentation' => 'http://geeklair.net/new_macports_guide',
+                    'Documentation' => $guide_url,
                     'Support &amp; Development' => $trac_url
                 );
                 foreach ($pages as $title => $url) {
@@ -47,16 +47,20 @@
                 $shortcuts = array (
                     'Downloads' => $downloads,
                     'MacPorts FAQ' => $trac_url . 'wiki/FAQ',
+                    // We should either link to the new ticketing guidelines below, while at the same
+                    // time including a link to trac's 'newticket' handler page on the former, or link
+                    // to them off some kind of banner on the latter.
                     'Report a Bug' => $trac_url . 'newticket',
+                    'Blog' => 'blog/',
                     'Subversion Repository' => $svn_url,
-                    'Blog' => 'blog/',
-                    'MacPorts Team' => $trac_url . 'wiki/MacPortsDevelopers'
+                    'MacPorts Team' => $trac_url . 'wiki/MacPortsDevelopers',
+                    'Becoming a Member' => $guide_url . '#project.membership'
                 );
                 foreach ($shortcuts as $title => $url) {
                     if (basename($PHP_SELF) == $url) {
-                        echo "<li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>";
+                        echo "<li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>\n";
                     } else {
-                        echo "<li><a href=\"$url\" title=\"$title\">$title</a></li>";
+                        echo "<li><a href=\"$url\" title=\"$title\">$title</a></li>\n";
                     }
                 }
 ?>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070914/6c717e1c/attachment.html


More information about the macports-changes mailing list