<% available_locales = Site.first.in_use_locales rescue I18n.available_locales %> <% data_count = 0 total_count = 0 %> <% @all_feed_annc.each do |feed_annc| %> <% feed_name = available_locales.collect{|v| feed_annc[:feed_name][v]}.join(' / ') %> <% if @source.blank? || (@source.include?(feed_annc.channel_title) rescue false) || @source.include?(feed_annc.remote_site_url.to_s.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-')) %> <% Array(feed_annc[:all_contents_for_feed][I18n.locale.to_s]).each do |annc| %> <% annc_title = available_locales.collect{|v| annc['title_translations'][v]}.join('/') %> <% annc_tags = annc['tags'].collect{|tmp| available_locales.collect{|v| tmp['name_translations'][v]}.join(' / ')} %> <% if @keywords.blank? || search_all_words(Nokogiri.HTML(annc_title).text()+' '+feed_name+' '+annc_tags.join(' '),@keywords) %> <% if total_count >= @skip_count && data_count < @max_content_count %> <% data_count += 1 %> '> <% end %> <% total_count += 1 %> <% end %> <% end %> <% end %> <% end %>
<%= t('feed.feed_name') %> <%= "#{t('title')}(#{available_locales.collect{|v| t(v)}.join('/')})" %> <%= "#{t('tags')}(#{available_locales.collect{|v| t(v)}.join('/')})" %>
<%= (feed_annc.channel_title.blank? || feed_annc.channel_title.include?("translation missing")) ? t("feed.source") : feed_annc.channel_title %>
<%= feed_name %>
  • <%= annc_title.html_safe %>
  • <%= check_box_tag nil,nil,feed_annc[:top_list].include?(annc['id']),'class' => 'is_top' %> <%= check_box_tag nil,nil,feed_annc[:hot_list].include?(annc['id']),'class' => 'is_hot' %>
<%= annc_tags.join('
').html_safe %>
<% display_flag = feed_annc[:hidden_annc].count==0 || feed_annc[:hidden_annc].exclude?(annc['id']) ? true : false %> <% if display_flag %> <% else %> <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag(:div, paginate(Kaminari.paginate_array([]).page(1).per(1),total_pages: (total_count/@max_content_count.to_f).ceil,current_page: @page_no), class: "pagination pagination-centered") end %>