Fix bug.
This commit is contained in:
parent
782e282058
commit
77da0ef641
|
@ -70,7 +70,7 @@ class Admin::FeedsController < OrbitAdminController
|
||||||
@filter_fields['feed.module_name'] = SiteFeed.all.map{|s| s.channel_key}.uniq.map do |key|
|
@filter_fields['feed.module_name'] = SiteFeed.all.map{|s| s.channel_key}.uniq.map do |key|
|
||||||
{:title => I18n.t("module_name.#{key}"),:id => key}
|
{:title => I18n.t("module_name.#{key}"),:id => key}
|
||||||
end
|
end
|
||||||
@module_name = params[:filters][:module_name] rescue []
|
@module_name = params[:filters][:module_name].to_a rescue []
|
||||||
@module_name = SiteFeed.all.map{|s| s.channel_key}.uniq if @module_name == []
|
@module_name = SiteFeed.all.map{|s| s.channel_key}.uniq if @module_name == []
|
||||||
@all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(created_at: 1).to_a rescue []
|
@all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(created_at: 1).to_a rescue []
|
||||||
@source = params[:filters][:source] rescue []
|
@source = params[:filters][:source] rescue []
|
||||||
|
|
|
@ -18,10 +18,8 @@
|
||||||
<% if @keywords.blank? || search_all_words(Nokogiri.HTML(annc_title).text()+' '+feed_name+' '+annc_tags.join(' '),@keywords) %>
|
<% if @keywords.blank? || search_all_words(Nokogiri.HTML(annc_title).text()+' '+feed_name+' '+annc_tags.join(' '),@keywords) %>
|
||||||
<tr data-annc-feed-id='<%= feed_annc.id.to_s %>' data-annc-uid='<%= annc['id'].to_s %>'>
|
<tr data-annc-feed-id='<%= feed_annc.id.to_s %>' data-annc-uid='<%= annc['id'].to_s %>'>
|
||||||
<td>
|
<td>
|
||||||
<% if (!feed_annc.channel_title.to_s.empty? rescue false) %>
|
<span class="channel-source-name label"><%= (feed_annc.channel_title.include?("translation missing") || feed_annc.channel_title.blank?) ? t("feed.source") : feed_annc.channel_title %></span>
|
||||||
<span class="channel-source-name label"><%= feed_annc.channel_title %></span>
|
<br>
|
||||||
<br>
|
|
||||||
<% end %>
|
|
||||||
<%= feed_name %>
|
<%= feed_name %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in New Issue