Sha256: 6ea4dc85d8b4519d1ef8af1e2d635aa9bcec599e22727042a137d6edd925f5af

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <meta name="generator" content="Klipbook"/>
    <title><%= @clippings.first.title %> - Collated Kindle Clippings</title>
    <style type="text/css">
      body {
        color: #333;
        font-size: 16px;
        line-height: 1.5em;
        font-family: Palatino, Georgia, serif;
        background-color: #fff;
        margin: 0px;
        padding: 20px;
      }
      a {
        text-decoration: none;
      }
      a, a:link, a:visited {
        color: #084ab7;
      }
      a:hover {
        text-decoration: underline;
      }

      h1 {
        line-height: 1.1em;
      }

      h2 {
        line-height: 1.1em;
        font-size: 1.3em;
        color: #555;
        font-style: italic;
      }

      ul {
        margin-top: 2em;
        width: 43em;
      }

      ul li {
        margin: 1.6em 0;
        list-style: none;
      }

      ul li p {
        margin-bottom: .5em;
      }

      ul li footer {
        text-align: right;
        font-size: .85em;
        color: #8C8C8C;
      }

      li.note p {
        font-style: italic;
      }

      footer {
        font-size: .85em;
        margin-left: 20em;
      }

      footer span {
        font-style: italic;
      }
    </style>
  </head>
  <body>

    <h1><%= @clippings.first.title %></h1>
    <% unless @author.blank? %>
      <h2>by <%= author %></h2>
    <% end %>

    <ul>
      <% @clippings.each do |clipping| %>
        <% unless clipping.text.blank? %>
        <li class="<%= clipping.type %>">
          <p>
            <%= ERB::Util.html_escape(clipping.text) %>
          </p>
          <footer><%= clipping.type %><% if clipping.location %> @ loc <%= clipping.location %><% end %></footer>
        </li>
        <% end %>
      <% end %>
    </ul>

    <footer>
      Generated by <a href="https://github.com/grassdog/klipbook">Klipbook <%= Klipbook::VERSION %></a> on <span><%= DateTime.now.strftime('%e %b %Y at %l:%M %P') %></span>
    </footer>
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
klipbook-0.2.1 lib/klipbook/book_summary.erb
klipbook-0.2.0 lib/klipbook/book_summary.erb