% content_for :page_specific_css do %>
<% end %>
<% user_has_rights = (current_user.is_admin? ? true : (current_user.is_manager?(@module_app) ? true : current_user.is_manager_with_role?(@module_app) ? true : false)) rescue false %>
<% @banners.each do |banner| %>
<% if !banner.ad_images.can_display.blank? %>
<% banner.ad_images.can_display.desc(:created_at).each do |image| %>
<% end %>
<% else %>
<% end %>
|
<%= banner.title rescue "" %>
|
<%= banner.category.title rescue "" %>
|
<% end %>
<% if user_has_rights %>
<% end %>
<%= content_tag :div, paginate(@banners), class: "pagination pagination-centered" %>