Commits

Adam Dutko committed dac5759

Add new components.

  • Participants
  • Parent commits b649c14

Comments (0)

Files changed (4)

File site/www/lib/ClevelandPM.pm

     });
 
     ## Route all requests to /meetings to meetings
-    $r->get('/meetings') => sub {
-      my $self = shift;
-      $self->render('meetings');
-    };
+    $r->get('/meetings')->to(template => 'meetings');
+    
+    ## Route all requests to /presentations to presentations 
+    $r->get('/presentations')->to(template => 'presentations');
+
+    ## Route all requests to /links to links 
+    $r->get('/links')->to(template => 'links');
+
 }
 
-1;
+1;

File site/www/templates/links.html.ep

+% layout 'default';
+% title 'Cleveland.pm.org Links';
+
+<span class="column_spacer"></span>
+<span class="column_spacer"></span>
+<span class="links">
+    <span class="links_title">Links</span>
+    <span class="links_links">
+    </span>
+</span>
+
+</ul>

File site/www/templates/partials/header.html.ep

     <ul>
         <li><a href="/">Home</a></li>
         <li><a href="/meetings/">Meetings</a></li>
+        <li><a href="/presentations/">Presentations</a></li>
         <li><a href="/links/">Links</a></li>
     </ul>
-</nav>
+</nav>

File site/www/templates/presentations.html.ep

+% layout 'default';
+% title 'Cleveland.pm.org Presentations - All';
+
+<span class="column_spacer"></span>
+<span class="column_spacer"></span>
+<span class="presentations">
+    <span class="presentations_title">Presentations</span>
+    <span class="presentations_links">
+        <p><a href="/doc/yapc-na-presentation-2013.pdf">YAPC NA 2013</a></p>
+    </span>
+</span>
+
+</ul>