Sha256: dfa7d1f9528d92b4a220c70c263af3209e80f34edb820235cddffd428822bc3a

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

<% cache [Blogelator::VERSION, @posts] do %>
  <% if @posts.length > 0 %>
    <%= render @posts %>
    <div class="pagination">
      <%= link_to_next_page @posts, "Older", class: "older" %>
      <%= link_to_previous_page @posts, "Newer", class: "newer" %>
    </div>
  <% else %>
    <div class="post">
      <h2>
        <a href="https://github.com/codelation/blogelator">
          Welcome to Blogelator
        </a>
      </h2>
      <div class="date">
        <%= local_time(Time.now, format: '%B %e, %Y') %>
      </div>
      <div class="summary">
        <p>
          Navigate to <%= link_to "#{File.join(request.path, "admin")}", blogelator.admin_path %>
          to create your first blog post. You will need to have your authentication set up
          already before you can access the Blogelator admin section.
        </p>
        <p>
          For more information about setting up Blogelator, check out the Readme on GitHub:
        </p>
        <blockquote>
          <a href="https://github.com/codelation/blogelator">https://github.com/codelation/blogelator</a>
        </blockquote>
        <p>
          Thanks for using Blogelator,
        </p>
        <p>
          <a href="http://twitter.com/brianpattison">@brianpattison</a>
        </p>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blogelator-0.2.5 app/views/blogelator/posts/index.html.erb
blogelator-0.2.4 app/views/blogelator/posts/index.html.erb