[Bast-commits] r9167 - in ironman/branches/mk-ii/IronMan-Web: . lib/IronMan/Web/Controller root/inc

iain at dev.catalyst.perl.org iain at dev.catalyst.perl.org
Wed Apr 14 21:46:04 GMT 2010


Author: iain
Date: 2010-04-14 22:46:04 +0100 (Wed, 14 Apr 2010)
New Revision: 9167

Modified:
   ironman/branches/mk-ii/IronMan-Web/ironman_web.conf
   ironman/branches/mk-ii/IronMan-Web/lib/IronMan/Web/Controller/Root.pm
   ironman/branches/mk-ii/IronMan-Web/root/inc/wrapper.tt
Log:
added support for simple branding. just put a branding section in the config file, see ironman_web.conf.

Modified: ironman/branches/mk-ii/IronMan-Web/ironman_web.conf
===================================================================
--- ironman/branches/mk-ii/IronMan-Web/ironman_web.conf	2010-04-14 21:38:07 UTC (rev 9166)
+++ ironman/branches/mk-ii/IronMan-Web/ironman_web.conf	2010-04-14 21:46:04 UTC (rev 9167)
@@ -1,7 +1,9 @@
 name   IronMan::Web
 frontpage_entries   20
 <branding>
-    page_title   all.things.per.ly - Perl Blog Archives
+    page_title   "all.things.per.ly - Perl Blog Archives"
     banner "enlightened perl organisation<br>enlightened |en'litnd|: adjective:<br>having or showing a rational, modern, and well-informed outlook<br>"
+    page_header "Planet Perl Iron Man"
+    page_footer "Planet Perl Iron Man"
 </branding>
 default_view   TT

Modified: ironman/branches/mk-ii/IronMan-Web/lib/IronMan/Web/Controller/Root.pm
===================================================================
--- ironman/branches/mk-ii/IronMan-Web/lib/IronMan/Web/Controller/Root.pm	2010-04-14 21:38:07 UTC (rev 9166)
+++ ironman/branches/mk-ii/IronMan-Web/lib/IronMan/Web/Controller/Root.pm	2010-04-14 21:46:04 UTC (rev 9167)
@@ -34,6 +34,7 @@
     my ( $self, $c ) = @_;
 
     $c->stash->{'feeds'} = $c->model('FeedDB::Feed')->search({ 'link' => \'IS NOT NULL'});
+    $c->stash->{'branding'} = $c->config()->{'branding'};
 }
 
 

Modified: ironman/branches/mk-ii/IronMan-Web/root/inc/wrapper.tt
===================================================================
--- ironman/branches/mk-ii/IronMan-Web/root/inc/wrapper.tt	2010-04-14 21:38:07 UTC (rev 9166)
+++ ironman/branches/mk-ii/IronMan-Web/root/inc/wrapper.tt	2010-04-14 21:46:04 UTC (rev 9167)
@@ -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>all.things.per.ly - Perl Blog Archives</title>
+    <title>[% branding.page_title %]</title>
   </head>
   <body>
     <div id="wrap">  
@@ -37,10 +37,7 @@
          <h1 class="title">
             all.things.per.ly
           </h1>
-          <p class="dict">
-          <strong>archives</strong>: <em>noun</em>:<br />
-          A collection of historical records and the
-          location where the are found </p>
+          <p class="dict">[% branding.banner %]</p>
       </div>
 
       <div id="header-right">
@@ -50,12 +47,12 @@
       </div>
     </div>
     <div id="main">
-        <div id="feed-title">all.things.per.ly - Perl Blog Archives</div>
+        <div id="feed-title">[% branding.page_header %]</div>
         [% PROCESS 'inc/feed_list.tt' %]
         [% content %]
     <hr />
 	<div class="footer">
-	<h4>all.things.per.ly: Planet Perl Blog Archives</h4>
+	<h4>[% branding.page_footer %]</h4>
 	Built by: 
      <em><a href="http://desert-island.me.uk/~castaway/web">castaway</a>,</em> 
      <em><a href="http://www.shadowcat.co.uk">mdk</a>,</em>




More information about the Bast-commits mailing list