show.html.haml revision d8f08fd7d152b86c580c1ae3bafff3ed5c404f57
- lh = LogicViewhelper.new(resource)
%h2= link_to resource, resource, 'data-type' => resource_class
%h5 Defined by:
%h5 Standardization-status:
%h5 Description
= simple_format resource.description
%nav
- lh.available_tabs.each do |(tab_title, tab, number)|
%li{class: tab==@tab ? 'active' : nil}
= link_to logic_path(resource, tab: tab) do
= tab_title
- if number
%span.badge= number
- lh.available_tab_links.each do |(tab_title, tab)|
%li{class: tab==@mapping_tab ? 'active' : nil}
= link_to tab_title, [resource, tab]