sandal / rbp-blog

Ruby Best Practices: The Blog

This URL has Read+Write access

rbp-blog / layout.erb
100644 78 lines (70 sloc) 3.412 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
  <head>
    <title>Ruby Best Practices - <%= @post ? @post.title.gsub( %r{</?[^>]+?>}, '' ) : "Blog" %></title>
 
    <link rel="alternate" type="application/rss+xml" title="RSS" href="http://blog.rubybestpractices.com/feed.xml">
    <link href="/styles.css", rel="stylesheet", type="text/css">
    <!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="/ie6.css" media="screen,projection" />
<![endif]-->
  <script type="text/javascript">
  if(top.location != location) {
    top.location.href = document.location.href;
  }
  </script>
    
  <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-2193841-6");
  pageTracker._trackPageview();
  } catch(err) {}</script>
  </head>
  <body>
    <div class="wrapper">
      <div id="header">
        <h1><a href="http://blog.rubybestpractices.com">Ruby Best Practices</a></h1>
        <h2 class="tagline">Increase Your Productivity -- Write Better Code</h2>
     </div>
     <div id="content">
       <div id="main">
        <%= yield %>
      </div>
 
      <div id="navbar">
        <div id="about">
          <div align="center">
          <% Korma::Blog.authors.to_a[0..3].each do |_,a| %>
            <% next if a.guest %>
            <a href="<%= a.index_uri %>" title="<%= a.name %>"><img src="<%= a.gravatar(40) %>" alt="<%= a.name %>"></a>
          <% end %>
          <br/>
          <% Korma::Blog.authors.to_a[4..-1].each do |_,a| %>
            <% next if a.guest %>
            <a href="<%= a.index_uri %>" title="<%= a.name %>"><img src="<%= a.gravatar(40) %>" alt="<%= a.name %>"></a>
          <% end %>
          <p>About: <a href="/about">blog</a> |
          <a href="http://rubybestpractices.com">book</a></p>
          <p>Disqus eating your code?<br/>Try pasting through <a href="http://blog.rubybestpractices.com:3000/code">this tool.</a></p>
<p><a href="http://feeds2.feedburner.com/RubyBestPractices"><img src="http://feeds2.feedburner.com/~fc/RubyBestPractices?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a></p>
        </div>
          </div>
        </div>
      </div>
 
    </div>
 
    <div id="footer">
      <div id="meta">
        <p>All content is under Copyright (C) 2009 by the individual authors of this blog and is hereby released under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-Noncommercial-Share Alike 3.0 Unported</a> license.<br/>If you have any questions, please contact the author of the material you are interested in using.</p>
 
        <p>If you enjoy reading this blog, you might also like to read the <a href="http://rubybestpractices.com">Ruby Best Practices</a> book, by Gregory Brown.</p>
      </div>
    </div>
  </div>
 
  <link type="text/css" rel="stylesheet" href="/SyntaxHighlighter.css"></link>
  <script language="javascript" src="/scripts/shCore.js"></script>
  <script language="javascript" src="/scripts/shBrushRuby.js"></script>
  <script language="javascript">
  dp.SyntaxHighlighter.ClipboardSwf = '/scripts/clipboard.swf';
  dp.SyntaxHighlighter.HighlightAll('code');
  </script>
  </body>
</html>