<% if @product.active.eql?(true) %>
    <div class="info-box" style="border: 1px solid rgba(0,0,0,0.2);">
        <span class="info-box-icon bg-green"><i class="fa fa-eye"></i></span>
        <div class="info-box-content">
            <span class="info-box-text">Produkt jest widoczny</span>
            <span class="info-box-number"><%= link_to('Wyłącz produkt', {controller: '/ps_admin/product', action: 'set_active', id: @product.id, active: 0}, remote: true) %></span>
        </div>
    </div>
<% else %>
<div class="info-box" style="border: 1px solid rgba(0,0,0,0.2);">
    <span class="info-box-icon bg-red"><i class="fa fa-eye-slash"></i></span>
    <div class="info-box-content">
        <span class="info-box-text">Produkt nie jest widoczny</span>
        <span class="info-box-number"><%= link_to('Włącz produkt', {controller: '/ps_admin/product', action: 'set_active', id: @product.id, active: 1}, remote: true) %></span>
    </div>
</div>
<% end %>
