Permalink
Browse files

Adds /about

  • Loading branch information...
1 parent 65f4390 commit ffde1616098f4323b63214ca7ae6309277a41552 @oalders oalders committed Nov 16, 2011
Showing with 7 additions and 1 deletion.
  1. +5 −0 lib/MetaCPAN/Web/Controller/About.pm
  2. +2 −1 root/inc/about-bar.html
@@ -4,6 +4,11 @@ use Moose;
BEGIN { extends 'MetaCPAN::Web::Controller' }
+sub about : Local : Path('/about') {
+ my ( $self, $c ) = @_;
+ $c->stash( template => 'about.html' );
+}
+
sub contributors : Local {
my ( $self, $c ) = @_;
$c->stash( template => 'about/contributors.html' );
@@ -1,6 +1,7 @@
<% UNLESS title; title = 'MetaCPAN About'; END %>
<div class="account-bar">
+ <a href="/about"<% IF req.action == 'about' %> class="active"<% END %>>About MetaCPAN</a>
<a href="/about/resources"<% IF req.action == 'about/resources' %> class="active"<% END %>>Resources</a>
<a href="/about/contributors"<% IF req.action == 'about/contributors' %> class="active"<% END %>>Contributors</a>
<a href="/about/sponsors"<% IF req.action == 'about/sponsors' %> class="active"<% END %>>Sponsors</a>
-</div>
+</div>

0 comments on commit ffde161

Please sign in to comment.