Add externel link open in new window.
This commit is contained in:
parent
a56d4017d6
commit
e266c79048
|
@ -50,7 +50,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"postdate" => a.postdate,
|
"postdate" => a.postdate,
|
||||||
"author" => author,
|
"author" => author,
|
||||||
"is_top" => (a.is_top? ? 1 : 0),
|
"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,
|
"target" => target,
|
||||||
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
|
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
|
||||||
"img_description" => desc,
|
"img_description" => desc,
|
||||||
|
@ -832,7 +832,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"postdate" => a.postdate,
|
"postdate" => a.postdate,
|
||||||
"author" => author,
|
"author" => author,
|
||||||
"is_top" => (a.is_top? ? 1 : 0),
|
"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,
|
"target" => target,
|
||||||
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
|
"img_src" => a.image.thumb.url || "/assets/announcement-default.jpg",
|
||||||
"img_description" => desc,
|
"img_description" => desc,
|
||||||
|
|
Loading…
Reference in New Issue