show.html.haml revision 24e0ce1d4adb31179cda93fa612c3df8268bf63b
- lh = LogicViewhelper.new(resource)
%h2= link_to resource, resource, 'data-type' => resource_class
- if can? :update, Logic
.pull-right
.btn-group
= link_to 'Edit', [:edit, resource], class: 'btn btn-default'
- if can? :delete, Logic
= link_to 'Delete', resource, confirm: 'Are you sure?', method: :delete, class: 'btn btn-default'
%h5 Defined by:
%h5 Standardization-status:
%h5 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==@link_tab ? 'active' : nil}
= link_to tab_title, [resource, tab]