Sha256: 145c52b29d8d44b77e0f0509823f933d12e1447ddd711013153b4dbb139103b4

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

<div class="box_relationships" id="<%= model_to_relate_as_resource %>">

  <h2>
    <%= model_to_relate.model_name.human.pluralize %>
    <small><%= add_new %></small>
  </h2>

  <%= form %>

  <% if @items.any? -%>
    <%= table %>
    <%= will_paginate(@items, :renderer => Typus::Pagination, :anchor => model_to_relate.to_resource) %>
  <% else %>
    <p><%= _t("There are no %{records}.", :records => model_to_relate.model_name.human.pluralize.downcase) %></p>
  <% end %>

</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typus-3.0.2 app/views/admin/templates/_has_n.html.erb
typus-3.0.1 app/views/admin/templates/_has_n.html.erb
typus-3.0.0 app/views/admin/templates/_has_n.html.erb
typus-1.0.0.pre13 app/views/admin/templates/_has_n.html.erb
typus-1.0.0.pre12 app/views/admin/templates/_has_n.html.erb
typus-1.0.0.pre11 app/views/admin/templates/_has_n.html.erb