Sha256: d695d1c8392456434427145e1fbdceb9715bba604024192fa780340a05f2b4b0

Contents?: true

Size: 801 Bytes

Versions: 11

Compression:

Stored size: 801 Bytes

Contents

<h1>Listing templates</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>To</th>
      <th>Cc</th>
      <th>Subject</th>
      <th>Body</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @templates.each do |template| %>
      <tr>
        <td><%= template.name %></td>
        <td><%= template.to %></td>
        <td><%= template.cc %></td>
        <td><%= template.subject %></td>
        <td><%= truncate(strip_tags(template.body)) %></td>
        <td>
            <%= link_to 'Preview', template %> | 
            <%= link_to 'Edit', edit_template_path(template) %> | 
            <%= link_to 'Destroy', template, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Template', new_template_path %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rooler-0.0.11 app/views/rooler/templates/index.html.erb
rooler-0.0.10 app/views/rooler/templates/index.html.erb
rooler-0.0.9 app/views/rooler/templates/index.html.erb
rooler-0.0.8 app/views/rooler/templates/index.html.erb
rooler-0.0.7 app/views/rooler/templates/index.html.erb
rooler-0.0.6 app/views/rooler/templates/index.html.erb
rooler-0.0.5 app/views/rooler/templates/index.html.erb
rooler-0.0.4 app/views/rooler/templates/index.html.erb
rooler-0.0.3 app/views/rooler/templates/index.html.erb
rooler-0.0.2 app/views/rooler/templates/index.html.erb
rooler-0.0.1 app/views/rooler/templates/index.html.erb