Sha256: 94a2579c90ee4a9a245cffebb8b01451fa307e590ae0374aaa9fd9b5d84a3a80

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 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 %>_index').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_title %> found.</div>";
	$('#div_<%= instance_name %>_details').html(noResultsText);
	$('#div_<%= instance_name %>_index').html(noResultsText);

<%% end %>

Version data entries

8 entries across 5 versions & 1 rubygems

Version Path
humdrum-rails-0.1.3 lib/rails/generators/humdrum/api/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.1.2 lib/rails/generators/humdrum/api/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/api/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.1.1 lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/api/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.0.9 lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/api/templates/views/gumby/resource/index.js.erb
humdrum-rails-0.0.8 lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb