show / hide image and image description together
This commit is contained in:
parent
0fa05d46c2
commit
f2916c9e3c
|
@ -338,9 +338,10 @@ class AnnouncementsController < ApplicationController
|
|||
|
||||
subtitle_ann = nil
|
||||
img_src = nil
|
||||
img_description = nil
|
||||
subtitle_ann = announcement.subtitle if announcement.display_subtitle?
|
||||
img_src = (announcement.image.thumb.url || "/assets/announcement-default.jpg") if announcement.display_img?
|
||||
img_description = announcement.image_description if announcement.image_description.present?
|
||||
img_description = announcement.image_description if (announcement.image_description.present?) && (announcement.display_img?)
|
||||
|
||||
{
|
||||
"tags" => tags,
|
||||
|
|
Loading…
Reference in New Issue