2010-01-24 03:48:25 +00:00
|
|
|
- if (constant_defs = constants(@item)).any?
|
|
|
|
%h2 Constants
|
2010-01-24 09:53:59 +00:00
|
|
|
- show_description = constant_defs.detect{|d| d.comment } && true
|
2010-01-24 03:48:25 +00:00
|
|
|
- cycle 'even', 'odd' do |row_classes|
|
|
|
|
- cycle 'even', 'odd' do |col_classes|
|
|
|
|
%table.constants{:cellspacing => "0", :cellpadding=>"0", :border => "0"}
|
|
|
|
%thead
|
|
|
|
%tr{:class => row_classes.next}
|
|
|
|
%th{:class => col_classes.next} Constant
|
|
|
|
%th{:class => col_classes.next} Value
|
2010-01-24 09:53:59 +00:00
|
|
|
- if show_description
|
|
|
|
%th{:class => col_classes.next} Description
|
|
|
|
%th{:class => col_classes.next} Configurable?
|
2010-01-24 03:48:25 +00:00
|
|
|
- col_classes.reset!
|
|
|
|
- constant_defs.each do |constant_def|
|
|
|
|
%tr{:class => row_classes.next}
|
|
|
|
%td{:class => col_classes.next}
|
|
|
|
%code= "!"+constant_def.name
|
|
|
|
%td{:class => col_classes.next}
|
2010-01-24 09:34:05 +00:00
|
|
|
%code= constant_def.expr.to_sass(:html)
|
2010-01-24 09:53:59 +00:00
|
|
|
- if show_description
|
|
|
|
%td{:class => col_classes.next}
|
|
|
|
- if constant_def.comment
|
|
|
|
= format_doc constant_def.comment
|
|
|
|
- else
|
|
|
|
|
2010-01-24 03:48:25 +00:00
|
|
|
%td{:class => col_classes.next}
|
|
|
|
%code= constant_def.guarded ? "Y" : "N"
|
|
|
|
- col_classes.reset!
|