Changeset 29102


Ignore:
Timestamp:
Sep 15, 2007, 5:07:36 AM (13 years ago)
Author:
jmpp@…
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,
Location:
trunk/www/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/common.inc

    r29011 r29102  
    3333$gz_tarball = $downloads . 'MacPorts-' . $mp_version_major . '.tar.gz';
    3434$checksums = $downloads .  'MacPorts-' . $mp_version_major . '.chk.txt';
     35$guide_url = 'http://geeklair.net/new_macports_guide/';
    3536
    3637
  • trunk/www/includes/header.inc

    r29101 r29102  
    22/* $Id$ */
    33$PHP_SELF = $_SERVER['PHP_SELF'];
    4 global $mp_version_major, $trac_url, $svn_url, $downloads;
     4global $mp_version_major, $trac_url, $svn_url, $downloads, $guide_url;
    55?>
    66
     
    2828                    'Get MacPorts' => 'getmp.php',
    2929                    'Available Ports' => 'ports.php',
    30                     'Documentation' => 'http://geeklair.net/new_macports_guide',
     30                    'Documentation' => $guide_url,
    3131                    'Support & Development' => $trac_url
    3232                );
     
    4848                    'Downloads' => $downloads,
    4949                    'MacPorts FAQ' => $trac_url . 'wiki/FAQ',
     50                    // We should either link to the new ticketing guidelines below, while at the same
     51                    // time including a link to trac's 'newticket' handler page on the former, or link
     52                    // to them off some kind of banner on the latter.
    5053                    'Report a Bug' => $trac_url . 'newticket',
     54                    'Blog' => 'blog/',
    5155                    'Subversion Repository' => $svn_url,
    52                     'Blog' => 'blog/',
    53                     'MacPorts Team' => $trac_url . 'wiki/MacPortsDevelopers'
     56                    'MacPorts Team' => $trac_url . 'wiki/MacPortsDevelopers',
     57                    'Becoming a Member' => $guide_url . '#project.membership'
    5458                );
    5559                foreach ($shortcuts as $title => $url) {
    5660                    if (basename($PHP_SELF) == $url) {
    57                         echo "<li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>";
     61                        echo "<li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>\n";
    5862                    } else {
    59                         echo "<li><a href=\"$url\" title=\"$title\">$title</a></li>";
     63                        echo "<li><a href=\"$url\" title=\"$title\">$title</a></li>\n";
    6064                    }
    6165                }
Note: See TracChangeset for help on using the changeset viewer.