[Bast-commits] r8075 - in ironman: . IronMan-Web/lib/IronMan/Web/Controller IronMan-Web/lib/IronMan/Web/View IronMan-Web/root IronMan-Web/root/archive IronMan-Web/root/inc

fade at dev.catalyst.perl.org fade at dev.catalyst.perl.org
Sat Dec 12 16:37:38 GMT 2009


Author: fade
Date: 2009-12-12 16:37:38 +0000 (Sat, 12 Dec 2009)
New Revision: 8075

Added:
   ironman/IronMan-Web/root/archive/
   ironman/IronMan-Web/root/archive/day.tt
   ironman/IronMan-Web/root/archive/month.tt
   ironman/IronMan-Web/root/archive/year.tt
   ironman/IronMan-Web/root/inc/
   ironman/IronMan-Web/root/inc/wrapper.tt
Modified:
   ironman/
   ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm
   ironman/IronMan-Web/lib/IronMan/Web/View/TT.pm
   ironman/IronMan-Web/root/new_feed.tt
Log:
sketch outline of archives, and add wrapper template


Property changes on: ironman
___________________________________________________________________
Name: svn:ignore
   + .includepath
.project


Modified: ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm	2009-12-12 16:36:58 UTC (rev 8074)
+++ ironman/IronMan-Web/lib/IronMan/Web/Controller/Archive.pm	2009-12-12 16:37:38 UTC (rev 8075)
@@ -27,10 +27,37 @@
     $c->response->body('Matched IronMan::Web::Controller::Archive in Archive.');
 }
 
+=head2 year
 
+=cut
+
+sub year :Path :Args(1) {
+    my ( $self, $c, $year ) = @_;
+	
+}
+
+=head2 month
+
+=cut
+
+sub month :Path :Args(2) {
+    my ( $self, $c, $year, $month ) = @_;
+	
+}
+
+
+=head2 day
+
+=cut
+
+sub day :Path :Args(3) {
+    my ( $self, $c, $year, $month, $day ) = @_;
+	
+}
+
 =head1 AUTHOR
 
-Grseme Lawton,,,
+Graeme Lawton, Carl Johnstone,,
 
 =head1 LICENSE
 

Modified: ironman/IronMan-Web/lib/IronMan/Web/View/TT.pm
===================================================================
--- ironman/IronMan-Web/lib/IronMan/Web/View/TT.pm	2009-12-12 16:36:58 UTC (rev 8074)
+++ ironman/IronMan-Web/lib/IronMan/Web/View/TT.pm	2009-12-12 16:37:38 UTC (rev 8075)
@@ -3,7 +3,10 @@
 use strict;
 use base 'Catalyst::View::TT';
 
-__PACKAGE__->config(TEMPLATE_EXTENSION => '.tt');
+__PACKAGE__->config(
+    'TEMPLATE_EXTENSION' => '.tt',
+    'WRAPPER' => 'inc/wrapper.tt'
+    );
 
 =head1 NAME
 

Added: ironman/IronMan-Web/root/archive/day.tt
===================================================================
--- ironman/IronMan-Web/root/archive/day.tt	                        (rev 0)
+++ ironman/IronMan-Web/root/archive/day.tt	2009-12-12 16:37:38 UTC (rev 8075)
@@ -0,0 +1,2 @@
+
+Daily archive for [% day %] [% month %] [% year %]
\ No newline at end of file

Added: ironman/IronMan-Web/root/archive/month.tt
===================================================================
--- ironman/IronMan-Web/root/archive/month.tt	                        (rev 0)
+++ ironman/IronMan-Web/root/archive/month.tt	2009-12-12 16:37:38 UTC (rev 8075)
@@ -0,0 +1,2 @@
+
+Monthly archive for [% month %] [% year %]
\ No newline at end of file

Added: ironman/IronMan-Web/root/archive/year.tt
===================================================================
--- ironman/IronMan-Web/root/archive/year.tt	                        (rev 0)
+++ ironman/IronMan-Web/root/archive/year.tt	2009-12-12 16:37:38 UTC (rev 8075)
@@ -0,0 +1,3 @@
+
+
+Yearly archive for [% year %]
\ No newline at end of file

Added: ironman/IronMan-Web/root/inc/wrapper.tt
===================================================================
--- ironman/IronMan-Web/root/inc/wrapper.tt	                        (rev 0)
+++ ironman/IronMan-Web/root/inc/wrapper.tt	2009-12-12 16:37:38 UTC (rev 8075)
@@ -0,0 +1,75 @@
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta name="generator" content="Catalyst 5.7x" />
+
+    <link rel="stylesheet" type="text/css" href="/static/css/reset.css" />
+    <link rel="stylesheet" type="text/css" href="/static/css/screen.css" />
+    <link rel="stylesheet" type="text/css" href="/static/css/basic.css" />
+    <link rel="stylesheet" type="text/css" href="/static/css/epo.css" />
+    <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>Ironman signup</title>
+  </head>
+  <body>
+    <div id="wrap">  
+      <div id="header-left">
+        <p class="pad">
+          &nbsp;&nbsp;
+        </p>
+      </div>
+
+      <div id="header-middle">
+        <p class="pad">&nbsp;
+          
+        </p>
+      </div>
+ 
+      <div id="header-text">
+         <h1 class="title">
+            enlightened perl organisation
+          </h1>
+          <p class="dict">
+          <strong>enlightened</strong> |en'litnd|: <em>adjective</em>:<br />
+          having or showing a rational, 
+          modern, and well-informed outlook </p>
+      </div>
+
+      <div id="header-right">
+        <p class="pad">
+          &nbsp;&nbsp;
+        </p>
+      </div>
+    </div>
+[% content %]
+    <hr />
+	<div class="footer">
+	<h4>Perl Iron Man Planet</h4>
+	Built by: <em>
+     <a href="http://desert-island.me.uk/~castaway/web">castaway</a>, 
+     <a href="http://penfold.vox.com">Penfold</a>,
+     <a href="http://bobtfish.livejournal.com/">t0m</a>,
+     <a href="http://www.basirat.com/">mohsen</a>, 
+     <a href="http://www.perlmonks.org/?node=theorbtwo">theorbtwo</a>, 
+     <a href="http://www.shadowcat.co.uk">epitaph</a></em>,
+     <a href="http://www.shadowcat.co.uk">mdk</a></em>
+    <br/>Hosted by: <em><a href="http://www.shadowcat.co.uk">Shadowcat Systems</a></em>
+    <br/>The code repository can be <em><a href="http://dev.catalyst.perl.org/repos/bast/ironman">accessed here</a></em>
+	</div>
+   </div>
+   </div> [%# end main %]
+  <script type="text/javascript">
+  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+  </script>
+  <script type="text/javascript">
+  try {
+  var pageTracker = _gat._getTracker("UA-2382391-7");
+  pageTracker._trackPageview();
+  } catch(err) {}</script>
+  </body>
+</html>

Modified: ironman/IronMan-Web/root/new_feed.tt
===================================================================
--- ironman/IronMan-Web/root/new_feed.tt	2009-12-12 16:36:58 UTC (rev 8074)
+++ ironman/IronMan-Web/root/new_feed.tt	2009-12-12 16:37:38 UTC (rev 8075)
@@ -1,50 +1,3 @@
-<!DOCTYPE html 
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <meta name="generator" content="Catalyst 5.7x" />
-
-    <link rel="stylesheet" type="text/css" href="/static/css/reset.css" />
-    <link rel="stylesheet" type="text/css" href="/static/css/screen.css" />
-    <link rel="stylesheet" type="text/css" href="/static/css/basic.css" />
-    <link rel="stylesheet" type="text/css" href="/static/css/epo.css" />
-    <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>Ironman signup</title>
-  </head>
-  <body>
-    <div id="wrap">  
-      <div id="header-left">
-        <p class="pad">
-          &nbsp;&nbsp;
-        </p>
-      </div>
-
-      <div id="header-middle">
-        <p class="pad">&nbsp;
-          
-        </p>
-      </div>
- 
-      <div id="header-text">
-         <h1 class="title">
-            enlightened perl organisation
-          </h1>
-          <p class="dict">
-          <strong>enlightened</strong> |en'litnd|: <em>adjective</em>:<br />
-          having or showing a rational, 
-          modern, and well-informed outlook </p>
-      </div>
-
-      <div id="header-right">
-        <p class="pad">
-          &nbsp;&nbsp;
-        </p>
-      </div>
-    </div>
     <div id='main'>
      [% IF existed %]
        <p class="error">
@@ -67,30 +20,3 @@
        <label>Email (confirmation)<input type="text" name="email_2"></label><br>
        <input type="submit" value="Sign up">
      </form>
-    <hr />
-	<div class="footer">
-	<h4>Perl Iron Man Planet</h4>
-	Built by: <em>
-     <a href="http://desert-island.me.uk/~castaway/web">castaway</a>, 
-     <a href="http://penfold.vox.com">Penfold</a>,
-     <a href="http://bobtfish.livejournal.com/">t0m</a>,
-     <a href="http://www.basirat.com/">mohsen</a>, 
-     <a href="http://www.perlmonks.org/?node=theorbtwo">theorbtwo</a>, 
-     <a href="http://www.shadowcat.co.uk">epitaph</a></em>,
-     <a href="http://www.shadowcat.co.uk">mdk</a></em>
-    <br/>Hosted by: <em><a href="http://www.shadowcat.co.uk">Shadowcat Systems</a></em>
-    <br/>The code repository can be <em><a href="http://dev.catalyst.perl.org/repos/bast/ironman">accessed here</a></em>
-	</div>
-   </div>
-   </div> [%# end main %]
-  <script type="text/javascript">
-  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-  </script>
-  <script type="text/javascript">
-  try {
-  var pageTracker = _gat._getTracker("UA-2382391-7");
-  pageTracker._trackPageview();
-  } catch(err) {}</script>
-  </body>
-</html>




More information about the Bast-commits mailing list