Changeset 538
- Timestamp:
- 07/06/07 17:37:37 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
edge/streamlined/lib/streamlined/view/base.rb
r387 r538 3 3 attr_reader :association 4 4 attr_reader :separator 5 6 class <<self 7 attr_accessor :empty_list_content 8 end 9 @empty_list_content = "No records found" 5 10 6 11 # When creating a relationship manager, specify the list of fields that will be edge/streamlined/templates/generic_views/_list.rhtml
r511 r538 9 9 </thead> 10 10 <tbody> 11 <% if @streamlined_items.empty? %> 12 <tr class="odd <%= model_ui.style_class_for(:list, :row, nil) %>"> 13 <td colspan="<%= list_columns.size + 1 %>"> 14 <div class="sl_list_empty_message"> 15 <%= Streamlined::View::Base.empty_list_content %> 16 </div> 17 </td> 18 </tr> 19 <% end %> 11 20 <% odd = false %> 12 21 <% for item in @streamlined_items %> edge/streamlined/test/functional/streamlined_controller_functional_test.rb
r534 r538 59 59 assert_template generic_view("list") 60 60 assert_equal([], assigns(:streamlined_item_pages)) 61 end 62 63 def test_empty_list 64 Person.delete_all 65 get :list 66 assert_response :success 67 assert_select "div[class=sl_list_empty_message]" 61 68 end 62 69
