<%= link_to raw(@all_page.published_page.blank? ? '<span class="badge bg-green" title="Zdejmij publikację">Tak</span>' : '<span class="badge bg-red" title="Opublikuj">Nie</span>'), (@all_page.published_page.blank? ? {controller: '/admin/all_page', action: 'unpublish', id: @all_page.id} : {controller: '/admin/all_page', action: 'publish', id: @all_page.id}), remote: true %>/<%= raw(@all_page.published.eql?(true) ? '<span class="badge bg-green">Tak</span>' : '<span class="badge bg-red">Nie</span>') %>
