Sha256: e4bf9d22a2de36bb2556b8182c0a905bdcb3ccf6ccf0b46c711c12efe18370cd

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

<%
  param_name = "#{association_name}_page"
%>

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

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

  <% if @items.any? -%>
    <%= table %>
    <%= paginate(@items, Typus.pagination.merge(:anchor => association_name, :param_name => param_name)) %>
  <% else %>
    <p><%= Typus::I18n.t("No %{resources} found.", :resources => association_name.humanize.downcase.pluralize) %></p>
  <% end %>

</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typus-3.1.6 app/views/admin/templates/_has_many.html.erb