Sha256: 82696b6fc21eabf86d5f402a39bf002817b71fb6e9d2c5bfddbd29146c79398e

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1><%= @content.type.title %></h1>
    <%= link_to "Back", contents_path, class: "secondary button" %>
  </div>
</div>

<div class="row">
  <div class="small-12 columns">
    <table>
      <tr>
        <td><strong>Title</strong></td>
        <td><%= @content.title %></td>
      </tr> 
      <tr>
        <td><strong>Slug</strong></td>
        <td><%= @content.slug %></td>
      </tr>
      <tr>
        <td><strong>Content</strong></td>
        <td><%= @content.content %></td>
      </tr>
      <tr>
        <td><strong>Type</strong></td>
        <td><%= @content.type.title %></td>
      </tr>
      <tr>
        <td><strong>Visible</strong></td>
        <td><%= @content.visible == 1 ? "Yes" : "No" %></td>
      </tr>
      <tr>
        <td><strong>Created By User</strong></td>
        <td><%= @content.user || "-" %></td>
      </tr>
      <tr>
        <td><strong>Categories</strong></td>
        <td><%= @content.categories.map(&:title).join(", ") %></td>
      </tr>
      <tr>
        <td><strong>Created</strong></td>
        <td><%= @content.created_at %></td>
      </tr>
      <tr>
        <td><strong>Updated</strong></td>
        <td><%= @content.updated_at %></td>
      </tr>
    </table>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/contents/show.html.erb
guts-1.0.7 app/views/guts/contents/show.html.erb
guts-1.0.5 app/views/guts/contents/show.html.erb
guts-1.0.3 app/views/guts/contents/show.html.erb