table builder: add 'striped' css class by default.

This commit is contained in:
evazion
2020-01-06 02:12:04 -06:00
parent abe7f086b6
commit f1528e0fae
20 changed files with 22 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
<% content_for(:content) do %>
<h1>Wiki</h1>
<%= table_for @wiki_pages, {class: "striped", width: "100%"} do |t| %>
<%= table_for @wiki_pages, width: "100%" do |t| %>
<% t.column "Title" do |wiki_page| %>
<span class="category-<%= wiki_page.category_name %>"><%= link_to_wiki wiki_page.title %></span>
<% end %>