29decibel/kindler

View on GitHub
lib/templates/page.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <meta content='text/html; charset=utf-8' http-equiv='Content-Type'/>
    <style type="text/css"><%= style %></style>
  </head>
  <body>
    <article>
      <header>
        <h2>
          <%= page[:title] %>
        </h2>
        <div class="s2k-header-line"></div>
        <% if page[:author] != '' %>
          <p><em><%= page[:author] %></em><p>
        <% end%>
      </header>
      <div><%= page[:content] %></div>
      <% if page[:url] %>
        <footer class="s2k-article-footer">
          Source: <a class="s2k-source-long" href="<%= page[:url]%>"><%= page[:url]%></a>
        </footer>
      <% end %>
    </article>
  </body>
</html>