fix open_link target
This commit is contained in:
parent
9730935491
commit
98e356513c
|
@ -9,11 +9,18 @@ class WebResourcesController < ApplicationController
|
|||
"status-class" => "status-#{status['classname']}"
|
||||
}
|
||||
end
|
||||
if link.link_open == "new_window"
|
||||
target = "_blank"
|
||||
elsif link.link_open == "local"
|
||||
target = "_self"
|
||||
end
|
||||
|
||||
{
|
||||
"title" => link.title,
|
||||
"context" => link.context,
|
||||
"statuses" => statuses,
|
||||
"link_to_show" => link.url
|
||||
"link_to_show" => link.url,
|
||||
"target" => target
|
||||
}
|
||||
end
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue