<% events = @easy_page_modules_data[block_name][:events] %>
<% total_count = @easy_page_modules_data[block_name][:total_count] %>
<% module_uid = modul_uniq_id.sub('module_inside_', '') %>

<%
  selected_event_types = EpmActivityFeed.event_types_for_settings(settings)
  selected_event_types = selected_event_types.map{|u| [l("label_#{u.singularize}_plural"), u, '']}
  selected_event_types << [l('label_all'), 'all', 'easy-activity-selected'] if selected_event_types.present?
%>

<span class="easy-query-heading">
  <span class="entity-array">
    <% selected_event_types.each do |activity| %>
      <% activity_name, activity_id, activity_class = activity %>
      <%= link_to activity_name, easy_show_selected_event_type_path(module_id: module_uid, event_type_id: activity_id), remote: true, class: "activity-feed-type-selector #{activity_class}", id: "#{module_uid}_#{activity_id}" %>
    <% end %>
  </span>
</span>

<div id="<%= module_uid %>_all_activities">
  <%= render partial: 'easy_activities/module_list_activity', locals: {events: events, total_count: total_count, module_uid: module_uid} %>
</div>