- color_class = "warning" unless @product_count.positive?
- icon_class = @product_count.positive? ? "icon-ok-sign" : "icon-remove-sign"
.dashboard_item.seven.columns.alpha#products
  .header.sixteen.columns.alpha{class: color_class}
    %h3.ten.columns.alpha
      = t "products"
    - if @product_count.positive?
      %a.six.columns.omega.icon-plus.button{ href: new_admin_product_path }
        = t "spree_admin_enterprises_create_new"
    - else
      %a{ "ofn-with-tip" => t(".products_tip") }
        = t "admin.whats_this"
  .sixteen.columns.alpha.list
    .sixteen.columns.alpha.list-item{class: color_class}
      %span.thirteen.columns.alpha
        = t(".active_products", count: @product_count)
      %span.three.columns.omega
        %span{class: icon_class}
  - if @product_count.positive?
    %a.sixteen.columns.alpha.button.bottom{ href: admin_products_path, class: color_class }
      = t "spree_admin_enterprises_producers_manage_products"
      %span.icon-arrow-right
  - else
    %a.sixteen.columns.alpha.button.bottom{ href: new_admin_product_path, class: color_class }
      = t "spree_admin_enterprises_create_new_product"
      %span.icon-arrow-right
