summaryrefslogtreecommitdiff
path: root/app/views/common/_table.html.haml
blob: 3c6bf2ee06757e41c0bb25534ef187dc625a9738 (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.any?
      = render content.all
    - else
      %tr
        %td{:colspan=>headers.count}= none