Sha256: ac327266a152969db4a435cfbb3fb110ccca19c626bc300687cb6ccf04279954
Contents?: true
Size: 1014 Bytes
Versions: 1
Compression:
Stored size: 1014 Bytes
Contents
<div id='menu'> <%= link_to 'Back', admin_kitsune_models_path %> | <%= link_to "New #{params[:id]}", new_admin_kitsune_model_record_path(params[:model_id]) %> </div> <div id='body'> <% @model.tabs.each do |key, value|%> <%= link_to key, value %> <% end %> <table> <thead> <tr> <% @model.columns(:display).each do |column| %> <th><%= sort_link_to(@model, column) %></th> <% end %> <th>Actions</th> </tr> </thead> <tbody> <% @records.each do |record| %> <tr class="<%= cycle('odd', 'even') %>"> <% @model.columns(:display).each do |column| %> <td><%= truncate(sanitize(record.send(column.name).to_s), :length => 20) %></td> <% end %> <td> <%= link_to 'Edit', edit_admin_kitsune_model_record_path(params[:model_id], record.id) %> - <%= link_to 'Delete', admin_kitsune_model_record_path(params[:model_id], record.id), :method => :delete, :confirm => "Are you sure?" %> </td> </tr> <% end %> </tbody> </table> <%= will_paginate @records %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitsune-0.0.2 | app/views/admin/kitsune/records/index.html.erb |