Fix frontend

This commit is contained in:
manson 2014-05-26 11:05:29 +08:00
parent 61526676c5
commit 6f49d55c43
2 changed files with 5 additions and 4 deletions

View File

@ -9,8 +9,8 @@ class WebResourcesController < ApplicationController
}
end
{
"data" => web_link,
"extras" => {"widget-title"=>"Web Resource"}
"web_link" => web_link,
"extras" => {"widget-title"=>t(:web_resource)}
}
end
@ -23,8 +23,8 @@ class WebResourcesController < ApplicationController
}
end
{
"data" => web_link,
"extras" => {"widget-title"=>"Web Resource"}
"web_link" => web_link,
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
}
end

View File

@ -6,6 +6,7 @@ module WebResource
base_url File.expand_path File.dirname(__FILE__)
taggable "WebLink"
widget_methods ["widget"]
categorizable
authorizable
frontend_enabled