Class: Avmtrf1::InventarioSistemas::SiteBuild::SistemasIndex
- Inherits:
-
HtmlPageBase
- Object
- HtmlPageBase
- Avmtrf1::InventarioSistemas::SiteBuild::SistemasIndex
show all
- Defined in:
- lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb
Constant Summary
Constants inherited
from HtmlPageBase
HtmlPageBase::NAVBAR_SEPARATOR, HtmlPageBase::SITE_TITLE
Instance Method Summary
collapse
#build, #href, #output_path, #site_title, #uid
Instance Method Details
#output_count ⇒ Object
18
19
20
|
# File 'lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb', line 18
def output_count
"<p>Quantidade: #{site.sistemas.count}</p>"
end
|
#output_inner_content ⇒ Object
10
11
12
|
# File 'lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb', line 10
def output_inner_content
output_count + output_list
end
|
#output_list ⇒ Object
22
23
24
25
26
27
|
# File 'lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb', line 22
def output_list
html_table(
%w[Nome Produção Responsável Gestor],
site.sistemas.map { |s| [s.self_html_link, s.producao, s.responsavel, s.gestor] }
)
end
|
#title ⇒ Object
14
15
16
|
# File 'lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb', line 14
def title
'Sistemas'
end
|