Sha256: 31cd292278916842e86eed0fd16a4e943696b924983edcab251edabeb2268342

Contents?: true

Size: 839 Bytes

Versions: 12

Compression:

Stored size: 839 Bytes

Contents

<%%# Displays list of @<%= instances_name %> %>
<div id="div_<%= instance_name %>_collections">
	<%% @<%= instances_name %>.each do |<%= instance_name %>| %>
		<div id="div_<%= instance_name %>_<%%= <%= instance_name %>.id %>">
			<%%= render :partial=>"item", :locals=>{:<%= instance_name %>=><%= instance_name %>} %>
		</div>
	<%% end %>
	<%% if @<%= instances_name %>.blank? %>
		<div id="div_<%= instance_name %>_empty" class="box text-color-grey padding-80 text-align-center" style="height:200px;">
      <%%= translate("forms.no_results_found") %>
		</div>
	<%% end %>
</div>
<div class="cl"></div>

<%% if @<%= instances_name %>.any? %>
   <%%= content_tag :div, :class=>"pull-right" do %>
     <%%= paginate @<%= instances_name %>, :remote => true, :theme => 'twitter-bootstrap' %>
   <%% end %>
<%% end %>
<div class="cl"></div>

Version data entries

12 entries across 9 versions & 1 rubygems

Version Path
humdrum-rails-0.1.3 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.1.2 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_index.html.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_index.html.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.0.7 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.0.6 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/_index.html.erb
humdrum-rails-0.0.4 lib/rails/generators/humdrum/resource/templates/views/resource/_index.html.erb
humdrum-rails-0.0.3 lib/rails/generators/humdrum/resource/templates/views/resource/_index.html.erb