git added source to status by default
This commit is contained in:
parent
ea56724a59
commit
7b0008c03a
|
@ -72,12 +72,16 @@ class AnnouncementsController < ApplicationController
|
||||||
fans = []
|
fans = []
|
||||||
locale = OrbitHelper.get_site_locale.to_s
|
locale = OrbitHelper.get_site_locale.to_s
|
||||||
feed_anns.each do |fa|
|
feed_anns.each do |fa|
|
||||||
|
status = {
|
||||||
|
"status" => "<a href='#{fa["source-site"]}' target='_blank' class='feed-source'>#{fa["source-site-title"]}</a>",
|
||||||
|
"status-class" => "status-source"
|
||||||
|
}
|
||||||
x = {
|
x = {
|
||||||
"bulletin_links" => fa["bulletin_links"],
|
"bulletin_links" => fa["bulletin_links"],
|
||||||
"bulletin_files" => fa["bulletin_files"],
|
"bulletin_files" => fa["bulletin_files"],
|
||||||
"title" => fa["title_translations"][locale],
|
"title" => fa["title_translations"][locale],
|
||||||
"subtitle" => fa["subtitle_translations"][locale],
|
"subtitle" => fa["subtitle_translations"][locale],
|
||||||
"statuses" => [],
|
"statuses" => [status],
|
||||||
"category" => fa["category"],
|
"category" => fa["category"],
|
||||||
"postdate" => fa["postdate"],
|
"postdate" => fa["postdate"],
|
||||||
"author" => fa["author"],
|
"author" => fa["author"],
|
||||||
|
|
Loading…
Reference in New Issue