Use bootstrap table striping to replace hand-cycled table stripes
This cuts down on the complexity of having to use the `cycle` function and makes the templates easier to read. CSS-based striping has been around for many years. The CSS is in order to keep our custom colour for striped tables.
This commit is contained in:
parent
b0c50ab344
commit
5fdada204c
9 changed files with 22 additions and 33 deletions
|
@ -873,7 +873,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase
|
|||
get :comments, :params => { :display_name => user.display_name }
|
||||
assert_response :success
|
||||
assert_template :comments
|
||||
assert_select "table.messages" do
|
||||
assert_select "table.table-striped" do
|
||||
assert_select "tr", :count => 1 # header, no comments
|
||||
end
|
||||
|
||||
|
@ -883,7 +883,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase
|
|||
get :comments, :params => { :display_name => other_user.display_name }
|
||||
assert_response :success
|
||||
assert_template :comments
|
||||
assert_select "table.messages" do
|
||||
assert_select "table.table-striped" do
|
||||
assert_select "tr", :count => 2 # header and one comment
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue