Commits

Leonardo Santagada committed 2d0404d

changed from including header and footer to rebasing just one template

Comments (0)

Files changed (6)

views/footer.tpl

-</div>
-
-<div class="footer">
-<p>© 2005-2010 <a href="mailto:ruda@rudix.org">Rudá Moura</a><br></p>
-</div>
-
-<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-1050966-1");
-pageTracker._trackPageview();
-} catch(err) {}</script>
-
-</body>
-</html>
-

views/header.tpl

-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-	"http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
-	<link rel="stylesheet" href="/static/screen.css" type="text/css" media="screen" title="no title" charset="utf-8">
-	<link rel="shortcut icon" href="/static/favicon.png">
-	<link rel="alternate" href="http://twitter.com/statuses/user_timeline/42107766.rss" type="application/rss+xml">
-	<meta name="google-site-verification" content="bD1PgBeaOQNxJ0KMyzj9lXbdO3KUzHzFWAAzwQv9q8Q" />
-<title>{{title}}</title>
-</head>
-
-<body>
-
-<div class="header">
-<span id="title">Rudix</span>
-<span id="subtitle">Unix ports and packages for Mac OS X delivered the Right Way™</span>
-</div>
-
-<div class="main">
-
-%include header title="Rudix: Unix ports and packages for Mac OS X"
+%rebase layout subtitle="Unix ports and packages for Mac OS X"
 
 <p>Rudix is a package-based, user-friendly way to extend the Unix portion of Mac OS X with additional network utilities, computer languages, development libraries, text tools and everything else you missed from command line.</p>
 <center>
     </form>
 
     <p>
-        <a href="http://code.google.com/p/rudix/wiki/VersionHistory">Version History</a> ·
         <a href="packages/">Packages</a> ·
         <a href="http://code.google.com/p/rudix/issues/list">Bug Report</a> ·
+        <a href="http://code.google.com/p/rudix/wiki/">Documentation</a> ·
         <a href="http://code.google.com/p/rudix/source/browse/">Source</a> ·
-        <a href="http://code.google.com/p/rudix/wiki/">Documentation</a> ·
-        <a href="http://code.google.com/p/rudix/wiki/License">License</a> ·
-        <a href="2009/index.html">Old Releases</a>
+        <a href="http://code.google.com/p/rudix/wiki/VersionHistory">Version History</a> ·
+        <a href="http://code.google.com/p/rudix/wiki/License">License</a>
     </p>
 
 <img src="static/rudix.png">
 	<div id="col4"><b>Python friendly</b>. Python is the only language officially supported by Rudix. As a result, Rudix offers a variety of Python modules. Also, everything is made for the native Python interpreter include in Mac OS X.</div>
 </div>
 
-%include footer
-
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
+	<link rel="stylesheet" href="/static/screen.css" type="text/css" media="screen" title="no title" charset="utf-8">
+	<link rel="shortcut icon" href="/static/favicon.png">
+	<link rel="alternate" href="http://twitter.com/statuses/user_timeline/42107766.rss" type="application/rss+xml">
+	<meta name="google-site-verification" content="bD1PgBeaOQNxJ0KMyzj9lXbdO3KUzHzFWAAzwQv9q8Q" />
+<title>Rudix: {{subtitle}}</title>
+</head>
+
+<body>
+
+<div class="header">
+<span id="title">Rudix</span>
+<span id="subtitle">Unix ports and packages for Mac OS X delivered the Right Way™</span>
+</div>
+
+<div class="main">
+
+    %include
+
+</div>
+
+<div class="footer">
+<p>© 2005-2010 <a href="mailto:ruda@rudix.org">Rudá Moura</a><br></p>
+</div>
+
+<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-1050966-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+
+</body>
+</html>
+

views/package_info.tpl

-%include header title="Rudix - Package detail"
+%rebase layout subtitle=("Package "+name)
 <h1>{{name}}</h1>
 
 <h2>{{version}}</h2>
 <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
 
-
-%include footer

views/package_list.tpl

-%include header title="Rudix - Package List"
+%rebase layout subtitle="Packages"
 <h1> Rudix packages </h1>
 <ul>
 % for package in packages:
 % end
 </ul>
 
-%include footer