Fix frontend
This commit is contained in:
parent
61526676c5
commit
6f49d55c43
|
@ -9,8 +9,8 @@ class WebResourcesController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"data" => web_link,
|
"web_link" => web_link,
|
||||||
"extras" => {"widget-title"=>"Web Resource"}
|
"extras" => {"widget-title"=>t(:web_resource)}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@ class WebResourcesController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"data" => web_link,
|
"web_link" => web_link,
|
||||||
"extras" => {"widget-title"=>"Web Resource"}
|
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ module WebResource
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
|
|
||||||
taggable "WebLink"
|
taggable "WebLink"
|
||||||
|
widget_methods ["widget"]
|
||||||
categorizable
|
categorizable
|
||||||
authorizable
|
authorizable
|
||||||
frontend_enabled
|
frontend_enabled
|
||||||
|
|
Loading…
Reference in New Issue