[Bast-commits] r9636 - in ironman/IronMan-Web/branches/dev: lib/IronMan/Web/Controller root/archive root/inc

fade at dev.catalyst.perl.org fade at dev.catalyst.perl.org
Thu Jul 15 19:48:24 GMT 2010


Author: fade
Date: 2010-07-15 20:48:24 +0100 (Thu, 15 Jul 2010)
New Revision: 9636

Added:
   ironman/IronMan-Web/branches/dev/root/archive/index.tt
Modified:
   ironman/IronMan-Web/branches/dev/lib/IronMan/Web/Controller/Archive.pm
   ironman/IronMan-Web/branches/dev/root/archive/day.tt
   ironman/IronMan-Web/branches/dev/root/archive/month.tt
   ironman/IronMan-Web/branches/dev/root/archive/year.tt
   ironman/IronMan-Web/branches/dev/root/inc/wrapper.tt
Log:
Archives tidy up - page titles, <h2> headings and better text on incomplete pages

Modified: ironman/IronMan-Web/branches/dev/lib/IronMan/Web/Controller/Archive.pm
===================================================================
--- ironman/IronMan-Web/branches/dev/lib/IronMan/Web/Controller/Archive.pm	2010-07-12 23:21:40 UTC (rev 9635)
+++ ironman/IronMan-Web/branches/dev/lib/IronMan/Web/Controller/Archive.pm	2010-07-15 19:48:24 UTC (rev 9636)
@@ -27,8 +27,6 @@
 sub index :Path :Args(0) {
     my ( $self, $c ) = @_;
 
-    $c->response->body('Matched IronMan::Web::Controller::Archive in Archive.');
-
 }
 
 =head2 year

Modified: ironman/IronMan-Web/branches/dev/root/archive/day.tt
===================================================================
--- ironman/IronMan-Web/branches/dev/root/archive/day.tt	2010-07-12 23:21:40 UTC (rev 9635)
+++ ironman/IronMan-Web/branches/dev/root/archive/day.tt	2010-07-15 19:48:24 UTC (rev 9636)
@@ -1,6 +1,6 @@
+[% SET page_title = 'Archives for ' _ day.strftime('%A, %d %B %Y') %] 
+<h2>Daily archive for [% day.strftime('%A, %d %B %Y') %]</h2>
 
-Daily archive for [% day.strftime('%A, %d %B %Y') %]
-
 [% INCLUDE 'inc/next_prev.tt' %]
 
 [% FOREACH post IN posts %]

Added: ironman/IronMan-Web/branches/dev/root/archive/index.tt
===================================================================
--- ironman/IronMan-Web/branches/dev/root/archive/index.tt	                        (rev 0)
+++ ironman/IronMan-Web/branches/dev/root/archive/index.tt	2010-07-15 19:48:24 UTC (rev 9636)
@@ -0,0 +1,6 @@
+[% SET page_title = 'Archives' %]
+
+<h2>Archives</h2>
+
+<p>This page is going to be a list of months and numbers of posts linking through to
+the deeper archives - bring your ideas to irc://irc.perl.org/#northwestengland.pm</p>

Modified: ironman/IronMan-Web/branches/dev/root/archive/month.tt
===================================================================
--- ironman/IronMan-Web/branches/dev/root/archive/month.tt	2010-07-12 23:21:40 UTC (rev 9635)
+++ ironman/IronMan-Web/branches/dev/root/archive/month.tt	2010-07-15 19:48:24 UTC (rev 9636)
@@ -1,5 +1,6 @@
+[% SET page_title = 'Archives for ' _ month.strftime('%B %Y') %] 
 
-Monthly archive for [% month.strftime('%B %Y') %]
+<h2>Monthly archive for [% month.strftime('%B %Y') %]</h2>
 
 [% INCLUDE 'inc/next_prev.tt' %]
 

Modified: ironman/IronMan-Web/branches/dev/root/archive/year.tt
===================================================================
--- ironman/IronMan-Web/branches/dev/root/archive/year.tt	2010-07-12 23:21:40 UTC (rev 9635)
+++ ironman/IronMan-Web/branches/dev/root/archive/year.tt	2010-07-15 19:48:24 UTC (rev 9636)
@@ -1,5 +1,6 @@
+[% SET page_title = 'Archives for ' _ year %]
 
+<h2>Yearly archive for [% year %]</h2>
 
-Yearly archive for [% year %]
-
-There's nothing here yet.
+<p>This page is going to be an annual archive - suggestions on presentation welcome in
+irc://irc.perl.org/#northwestengland.pm</p>

Modified: ironman/IronMan-Web/branches/dev/root/inc/wrapper.tt
===================================================================
--- ironman/IronMan-Web/branches/dev/root/inc/wrapper.tt	2010-07-12 23:21:40 UTC (rev 9635)
+++ ironman/IronMan-Web/branches/dev/root/inc/wrapper.tt	2010-07-15 19:48:24 UTC (rev 9636)
@@ -17,7 +17,7 @@
     <link rel="stylesheet" type="text/css" href="/static/css/print.css" media="print" />
     <link rel="stylesheet" type="text/css" href="/static/css/handheld.css" media="handheld" />
     <link rel="stylesheet" type="text/css" href="/static/css/screen-members-list.css" />
-    <title>[% branding.page_title %]</title>
+    <title>[% IF page_title %][% page_title %] - [% END %][% branding.page_title %]</title>
   </head>
   <body>
     <div id="wrap">  




More information about the Bast-commits mailing list