blob: 44762da5431cd4d498996752b2dc1b1a2614c5e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
-#
-# A simple table with headers, content and a message if there is no
-# content.
-# You can use the table helper method to translate the headers and
-# error message.
-#
%table.table.table-striped.table-bordered
%thead
%tr
- headers.each do |header|
%th= header
%tbody
- if content.present?
= render content.all
- else
%tr
%td{:colspan=>headers.count}= none
|