Logging List

<% (@loggings || []).each do |log|%> <% upload_details = log.extra_data%> <%end%>
Logging Name Logging Type Upload Type Enabled URL / IP Network / AP / Tags Upload User Action
<%= log.name.try(:camelcase)%> <%= Logging::LOGGING_TYPE[log.logging_type]%> <%= Logging::UPLOAD_TYPE[log.upload_type]%> <% if (can? :manage, Logging) -%> <%= check_box_tag(:is_enabled, log.is_enabled, log.is_enabled == '1', "data-url"=>updatus_enabled_status_logging_index_path(:id => log.id), :id => "is_enabled_#{log.id}") %> <% else -%> <%= check_box_tag(:is_enabled, log.is_enabled, log.is_enabled == '1', "data-url"=>updatus_enabled_status_logging_index_path(:id => log.id), :disabled => 'disabled', :id => "is_enabled_#{log.id}") %> <% end -%> <%= upload_details['upload_url'] || upload_details['ip_address']%> <% log.config_mappings.each do |list|%> <% unless list.resourceable.blank?%> <%name,path,title = show_tags(list,:logging) %> <%= link_to name, path ,:class=>"label label-primary",:title => title%>   <% end %> <% end %> <%= upload_details['uploaded_user']%> <%= link_to 'Edit', logging_index_path(:id => log.id),:class=>"label label-info" if can? :manage, Logging%> <%= link_to 'Destroy', logging_path(:id => log.id), :method => :delete, :class=>"label label-danger", :confirm => "Are you sure you want to delete?" if can? :manage, Logging%>
<%unless @location_networks.blank?%> <%end%>