Module: Card::Set::Self::Mod::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-card/mod001-core/self/mod.rb

Instance Method Summary collapse

Instance Method Details

#view: rolesObject



33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'platypus/tmp/set/gem-card/mod001-core/self/mod.rb', line 33

view :roles do
  [
    (:h1, "Roles"),
    card.all_admin_configs_grouped_by(:roles, :category).map do |(role, configs_by_cat)|
      output [
        (:h2, role.to_sym.cardname),
        (configs_by_cat.map do |(cat, configs)|
          list_section cat, configs.map(&:codename)
        end)
      ]
    end.join("<br\>")
  ]
end