Sha256: f3ff563fc8041fd25a5e481a84ae629b4b95ba8e2754ccb3f3393f654b03983b

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 Bytes

Contents

<h1><%= @title.pluralize %></h1>

<section>
    <% unless @records.empty? %>
        <table>
            <% @records.each do |record| %>
                <tr>
                    <td><a href="<%= url_prefix %>admin/<%= @plural %>/<%= record.id %>"><%= record.name %></a></td>
                    <td><a href="<%= url_prefix %>admin/<%= @plural %>/<%= record.id %>">Delete</a></td>
                </tr>
            <% end %>
        </table>
    <% else %>
        <p>No <%= @plural %></p>
    <% end %>
</section>

<p class="actions"><a href="<%= url_prefix %>admin/<%= @plural %>/new">New <%= @title.downcase %></a></p>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
perus-0.1.2 lib/perus/server/views/admin/index.erb
perus-0.1.1 lib/perus/server/views/admin/index.erb
perus-0.1.0 lib/perus/server/views/admin/index.erb