Commits

shl...@cec68495-dca5-4e2b-845c-11fdaaa4f967  committed a4a21bc

Added the navigation arrows to the nav-bar.

  • Participants
  • Parent commits 3358968

Comments (0)

Files changed (5)

 
 * Add information about contributing to Subversion, GIMP and Perl.
 
-* Tweak the Nav-Bar CSS to make the left margin less spacy and the font 
-smaller. (Test on every other browser).
-
 * Add the manual navigation links to the navigation bar. (Similar to Mozilla's
 next/prev/up link rel=""'s)
 

File common/images/arrow-left.png

Added
New image

File common/images/arrow-right.png

Added
New image

File common/images/arrow-up.png

Added
New image

File template.wml

 <:{
 use CGI qw();
 
-while (my ($key, $url) = each(%$nav_links))
+my @keys = (sort { $a cmp $b } keys(%$nav_links));
+foreach my $key (@keys)
 {
+    my $url = $nav_links->{$key};
     print "<link rel=\"$key\" href=\"" . CGI::escapeHTML($url) . "\" />\n"
 }
 }:>
      title="Stop Software Patents!"><img 
      src="$(ROOT)/images/noepatents_liberty.png" 
      alt="Stop Software Patents" class="highlight" 
-     style="border:0" /></a></div>"
+     style="border:0;margin-bottom:0.5em;" /></a></div>"
     ""
     />
-    
+<:{ 
+    my $nav_buttons_html = "";
+    foreach my $button 
+        (
+            { 
+                'dir' => "prev", 
+                'button' => "left", 
+                'title' => "Previous Page",
+            },
+            { 
+                'dir' => "up", 
+                'button' => "up", 
+                'title' => "Up in the Site",
+            },
+            {
+                'dir' => "next", 
+                'button' => "right", 
+                'title' => "Next Page",
+            },
+       )
+   {
+        $nav_buttons_html .= "<a href=\"" . CGI::escapeHTML($nav_links->{$button->{dir}}) . 
+            "\" title=\"$button->{title}\"><img src=\"$(ROOT)/images/arrow-$button->{button}.png\" alt=\"$button->{title}\" style=\"border:0\" /></a>\n";
+   }
+   print "<div class=\"center\">\n$nav_buttons_html\n</div>";
+}:>    
 <:{ print join("\n", @$nav_html); }:>
 
 <validhtml />