Add externel link open in new window.

This commit is contained in:
BoHung Chiu 2021-11-12 15:37:36 +08:00
parent a56d4017d6
commit e266c79048
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class AnnouncementsController < ApplicationController
"postdate" => a.postdate,
"author" => author,
"is_top" => (a.is_top? ? 1 : 0),
"link_to_show" => link_to_show+"\" title=\"#{title}\"",
"link_to_show" => link_to_show+"\" #{link_to_show[0] == '/' ? '' : 'target="_blank"'} title=\"#{title}",
"target" => target,
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
"img_description" => desc,
@ -832,7 +832,7 @@ class AnnouncementsController < ApplicationController
"postdate" => a.postdate,
"author" => author,
"is_top" => (a.is_top? ? 1 : 0),
"link_to_show" => link_to_show+"\" title=\"#{title}\"",
"link_to_show" => link_to_show+"\" #{link_to_show[0] == '/' ? '' : 'target="_blank"'} title=\"#{title}",
"target" => target,
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
"img_description" => desc,