update widget read more url for designer

This commit is contained in:
JiangRu 2014-12-01 13:48:02 +08:00
parent f0efa2344a
commit 363fafaa98
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ class AnnouncementsController < ApplicationController
def widget
announcements = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil]).can_display.is_approved.order_by(:created_at=>'desc').filter_by_widget_categories.filter_by_tags(OrbitHelper.widget_tags)
page = Page.where(:module => "announcement").first rescue nil
anns = announcements.collect do |a|
statuses = a.statuses_with_classname.collect do |status|
@ -73,7 +74,8 @@ class AnnouncementsController < ApplicationController
"author-head" => t('announcement.table.author'),
"status-head" => t('announcement.table.status'),
"subtitle-head" => t('announcement.table.sub_title'),
"category-head" => t('announcement.table.category')
"category-head" => t('announcement.table.category'),
"read_more" => "/#{I18n.locale.to_s + page.url}"
}
}
end