Merge branch 'master' into 'master'
return subtitle and image for templates add subtitle and image to return value(hash) See merge request !4
This commit is contained in:
commit
56822ed38c
|
@ -342,10 +342,12 @@ class AnnouncementsController < ApplicationController
|
||||||
"bulletin_links" => links,
|
"bulletin_links" => links,
|
||||||
"data" => {
|
"data" => {
|
||||||
"title" => announcement.title,
|
"title" => announcement.title,
|
||||||
|
"subtitle_ann" => announcement.subtitle,
|
||||||
"update_user" => update_user,
|
"update_user" => update_user,
|
||||||
"updated_at" => announcement.postdate.strftime('%Y-%m-%d %H:%M'),
|
"updated_at" => announcement.postdate.strftime('%Y-%m-%d %H:%M'),
|
||||||
"body" =>announcement.text,
|
"body" =>announcement.text,
|
||||||
"image" => announcement.image.url,
|
"image" => announcement.image.url,
|
||||||
|
"img_src" => announcement.image.thumb.url || "/assets/announcement-default.jpg",
|
||||||
"alt_title" => desc
|
"alt_title" => desc
|
||||||
},
|
},
|
||||||
"impressionist" => (announcement.is_preview ? nil : announcement),
|
"impressionist" => (announcement.is_preview ? nil : announcement),
|
||||||
|
|
Loading…
Reference in New Issue