<% if current_user.is_superadmin? %> <% end %> <% @searchstat.each do |stats| %> <% unless @prov_stat[stats.id].count == 0 %> <% if current_user.is_superadmin? %> <% end %> <% if @prov_stat[stats.id].count > 1 %> <% if current_user.is_superadmin? %> <% end %> <% end %> <% end %>
Date <%= t('title') %> <%= t('searchstats.search_words') %><%= t('searchstats.translated_words') %> <%= t('searchstats.special_filter') %><%= t('searchstats.results') %> <%= t('results_by_provider', provider_word: I18n.t(session[:provider_word], count: 1)) %> <%= t('searchstats.metadata') %> <%= t('searchstats.reception_date_from') %> <%= t('searchstats.reception_date_to') %> <%= t('searchstats.date_created_from') %> <%= t('searchstats.date_created_to') %>
<%= I18n.l(stats.cs_created) %> <%= stats.user.title.name unless stats.user.blank? %> <%= stats.keyword %><%= stats.translation %> <%= t'searchstats.special_filter_activated' if stats.special_filter==1 %><%= stats.result %> <% if @prov_stat[stats.id].count > 1 && stats.result > 0 %> <% elsif @prov_stat[stats.id].count == 1 && stats.result > 0 %> <% @prov_stat[stats.id].each do |k, v| %> <%= "#{@prov_name[k]} : #{v} " %> <% end %> <% end %> <% unless @img_field[stats.id].empty? %> <% @img_field[stats.id].each_with_index do |(k,v),i| %> <% i18n_k = t("#{k}") %> <%= "#{i18n_k} = #{v}" %> <% unless i==@img_field[stats.id].size-1 %>
<% end %> <% end %> <% end %>
<%= I18n.l(stats.date_pp_from) unless stats.date_pp_from.nil? %> <%= I18n.l(stats.date_pp_to) unless stats.date_pp_to.nil? %> <%= I18n.l(stats.date_photo_from) unless stats.date_photo_from.nil? %> <%= I18n.l(stats.date_photo_to) unless stats.date_photo_to.nil? %>
<% else %> <% end %>
<% @prov_stat[stats.id].each_with_index do |(k, v),i| %> <%= "#{@prov_name[k]} : #{v} " %> <% if i < @prov_stat[stats.id].size-1 %>
<% end %> <% end %>