fix error

This commit is contained in:
chiu 2020-07-22 14:14:12 +08:00
parent 01b2a18415
commit 46955a4024
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
<tbody> <tbody>
<% @all_feed_annc.each do |feed_annc| %> <% @all_feed_annc.each do |feed_annc| %>
<% feed_name = available_locales.collect{|v| feed_annc[:feed_name][v]}.join(' / ') %> <% 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.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-')) %> <% 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]).each do |annc| %> <% Array(feed_annc[:all_contents_for_feed]).each do |annc| %>
<% annc_title = available_locales.collect{|v| annc['title_translations'][v]}.join('/') %> <% 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(' / ')} %> <% annc_tags = annc['tags'].collect{|tmp| available_locales.collect{|v| tmp['name_translations'][v]}.join(' / ')} %>