Sha256: 2594280cd1b161d836e6a24f7dca35f8bea1dd72749e403ab7e6c6d2511e1d1e

Contents?: true

Size: 677 Bytes

Versions: 2

Compression:

Stored size: 677 Bytes

Contents

<% title @entry.title %>

<% content_for :heading do %>
  <h1><%= @entry.title %></h1>
<% end %>

<% present(@entry, Plotline::EntryPresenter) do |entry| %>
  <table class="table">
    <tbody>
      <tr>
        <td>Slug:</td>
        <td><%= @entry.slug %></td>
      </tr>
      <tr>
        <td>Tags:</td>
        <td><%= @entry.tags.join(', ') %></td>
      </tr>

      <% @entry.class.content_attributes.each do |attr_name, attr_type| %>
        <tr>
          <td><%= attr_name.to_s.titleize %>:</td>
          <td><%= @entry.send(attr_name.to_sym) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>

  <div>
    <%= entry.body_markdown %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plotline-0.1.1 app/views/plotline/entries/show.html.erb
plotline-0.1.0 app/views/plotline/entries/show.html.erb