]> git.openstreetmap.org Git - rails.git/commit
Use bootstrap table striping to replace hand-cycled table stripes
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 18 Mar 2020 10:27:36 +0000 (11:27 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 18 Mar 2020 11:14:24 +0000 (12:14 +0100)
commit5fdada204cf92d8ca99300927713724aaaf1b2bd
treec31263e859b239d6228b9f072068e1d8e26252df
parentb0c50ab344f924e855d9a9003c1b913685d1bb62
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.
app/assets/stylesheets/common.scss
app/views/diary_entries/comments.html.erb
app/views/traces/_trace.html.erb
app/views/traces/index.html.erb
app/views/user_blocks/_block.html.erb
app/views/user_blocks/_blocks.html.erb
app/views/users/_user.html.erb
app/views/users/index.html.erb
test/controllers/diary_entries_controller_test.rb