This commit is contained in:
邱博亞 2023-12-30 11:43:33 +08:00
parent 60f18fef2b
commit 5a47481072
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ class FeedsController < ApplicationController
a["category_id"] = category_id a["category_id"] = category_id
locales.each do |locale| locales.each do |locale|
locale_sym = locale.to_sym locale_sym = locale.to_sym
time_field_value = Time.parse(a[feeds_time_field]) rescue a[feeds_time_field]
has_create = false has_create = false
feed_annc[:all_contents_for_feed][locale_sym].each_with_index do |aa, i| feed_annc[:all_contents_for_feed][locale_sym].each_with_index do |aa, i|
if aa["id"] == a["id"] if aa["id"] == a["id"]

View File

@ -23,7 +23,7 @@
<% data_count += 1 %> <% data_count += 1 %>
<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>
<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.blank? || feed_annc.channel_title.include?("translation missing")) ? t("feed.source") : feed_annc.channel_title %></span>
<br> <br>
<%= feed_name %> <%= feed_name %>
</td> </td>