app manager's view update

This commit is contained in:
devin chen authored and saurabhbhatia committed 2013-07-30 16:42:46 +08:00
1 parent 9963395b05
commit f2ada14b7a
10 files changed
+255 -80

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ class DesktopController< ApplicationController
sec = Section.find(grp.section_id);
@sections << {"id"=>sec.id,"name"=>sec.name}
end
@allWidgets << {"id"=>dw.id, "data_category"=> "widget","title" => dw.name, "version" => dw.version, "author"=>dw.author, "last_update"=>dw.updated_at, "icon"=>dw.images.where(:name=>dw.icon).first.file.url, "sections" => @sections}
@allWidgets << {"id"=>dw.id, "data_category"=> "widget","title" => dw.name, "version" => dw.version, "author"=>dw.author, "last_update"=>dw.updated_at, "icon"=>dw.images.where(:name=>dw.icon).first.file.url, "text_color" => dw.text_color, "background" => dw.bg_color, "sections" => @sections}
end
render :json=>@allWidgets.to_json
end