- lh = LogicViewhelper.new(resource)
%h2= link_to resource, resource, 'data-type' => resource_class

- if can? :update, Logic
  %ul.actions.pull-right
    %li= link_to 'Edit Logic', :edit_logic
    - if can? :delete, Logic
      %li= link_to 'Delete Logic', :logic, :confirm => 'Are you sure?', :method => :delete

%p.definedBy 
  %h5 Defined by:
  = resource.defined_by
%p.standardStatus 
  %h5 Standardization-status: 
  = resource.standardization_status

%p.description
  %h5 Description
  = resource.description

%nav
  %ul.nav.nav-tabs
    - 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]

= render partial: @tab.to_s unless @tab.nil?

- lh = LogicViewhelper.new(resource)
%h2= link_to resource, resource, 'data-type' => resource_class

- if can? :update, Logic
  %ul.actions.pull-right
    %li= link_to 'Edit Logic', resource, {}, :edit
    - if can? :delete, Logic
      %li= link_to 'Delete Logic', resource, {:confirm => 'Are you sure?', :method => :delete}, :edit

%p.definedBy 
  %h5 Defined by:
  = resource.defined_by
%p.standardStatus 
  %h5 Standardization-status: 
  = resource.standardization_status

%p.description
  %h5 Description
  = resource.description

%nav
  %ul.nav.nav-tabs
    - 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]

= render partial: @tab.to_s unless @tab.nil?

Fix link_to calls for embedded logic views.
Fix link_to calls for embedded logic views.
