git added source to status by default

This commit is contained in:
Harry Bomrah 2015-11-11 17:54:10 +08:00
parent ea56724a59
commit 7b0008c03a
1 changed files with 5 additions and 1 deletions

View File

@ -72,12 +72,16 @@ class AnnouncementsController < ApplicationController
fans = []
locale = OrbitHelper.get_site_locale.to_s
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 = {
"bulletin_links" => fa["bulletin_links"],
"bulletin_files" => fa["bulletin_files"],
"title" => fa["title_translations"][locale],
"subtitle" => fa["subtitle_translations"][locale],
"statuses" => [],
"statuses" => [status],
"category" => fa["category"],
"postdate" => fa["postdate"],
"author" => fa["author"],