Class: Avmtrf1::InventarioSistemas::SiteBuild::SistemasIndex

Inherits:
HtmlPageBase
  • Object
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

Methods inherited from HtmlPageBase

#build, #href, #output_path, #site_title, #uid

Instance Method Details

#output_countObject



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_contentObject



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_listObject



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

#titleObject



14
15
16
# File 'lib/avmtrf1/inventario_sistemas/site_build/sistemas_index.rb', line 14

def title
  'Sistemas'
end