Sha256: ec68c9abf2f5a8ccd5dcc954c528cbf1d275f40f159bb9d71160a71934d5f0aa

Contents?: true

Size: 654 Bytes

Versions: 2

Compression:

Stored size: 654 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 text-color-grey padding-80 text-align-center\" style=\"height:200px;\">No <%= instances_name %> found.</div>";
	$('#div_<%= instance_name %>_details').html(noResultsText);
	$('#div_<%= instance_name %>_collections').html(noResultsText);

<%% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
humdrum-rails-0.0.7 lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.0.6 lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb