Sha256: 951fe233e651b9d04c2c4f5e35b0eafe98786289153eddb3efbc030c75f881a4

Contents?: true

Size: 591 Bytes

Versions: 12

Compression:

Stored size: 591 Bytes

Contents

<%% if @<%= instances_name %>.any? %>

	// Fill the right box with first <%= instance_name %> details in the list
	$('#div_<%= instance_name %>_details').html("<%%= escape_javascript(render(:partial=>'show')) %>");
	
	// Rendering the item list
	$('#div_<%= instance_name %>_collections').html("<%%= escape_javascript(render(:partial=>"index")) %>");
	
<%% else %>

	var noResultsText = "<div class='box padding-10' style='height:200px;'>No results found.</div>";
	$('#div_<%= instance_name %>_list').html(noResultsText);
	$('#div_<%= instance_name %>_list').html(noResultsText);

<%% end %>

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.js.erb
humdrum-rails-0.1.2 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/index.js.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/index.js.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/api/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.0.7 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.0.6 lib/rails/generators/humdrum/resource/templates/views/bootstrap/resource/index.js.erb
humdrum-rails-0.0.4 lib/rails/generators/humdrum/resource/templates/views/resource/index.js.erb
humdrum-rails-0.0.3 lib/rails/generators/humdrum/resource/templates/views/resource/index.js.erb