Updated Desktop with new UI

This commit is contained in:
saurabhbhatia 2013-07-30 16:15:04 +08:00
parent 55d9aea664
commit e12b14311e
4 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,7 @@ class DesktopAppsController < OrbitBackendController
def index
@desktopapps = DesktopApp.all
render :layout => false
end
def upload
@ -17,6 +18,7 @@ class DesktopAppsController < OrbitBackendController
unzip_app(temp_file,filename)
temp_file.close
end
render :layout => false
end
def unzip_app(file, zip_name)

View File

@ -5,6 +5,7 @@ class DesktopThemesController < OrbitBackendController
def index
@desktopThemes = DesktopTheme.all
render :layout => false
end
def destroy
@ -27,6 +28,7 @@ class DesktopThemesController < OrbitBackendController
#end
temp_file.close
end
render :layout => false
end
def edit
@dw = DesktopWidget.find(params[:id])

View File

@ -5,6 +5,7 @@ class DesktopWidgetsController < OrbitBackendController
def index
@desktopWidgets = DesktopWidget.all
render :layout => false
end
def upload
@ -21,6 +22,7 @@ class DesktopWidgetsController < OrbitBackendController
#end
temp_file.close
end
render :layout => false
end
def edit
@dw = DesktopWidget.find(params[:id])

View File

@ -13,8 +13,8 @@
<!--[if lt IE 9]>
<%= javascript_include_tag "html5" %>
<![endif]-->
<%= stylesheet_link_tag "desktop" %>
<%= javascript_include_tag "desktop" %>
<%= stylesheet_link_tag "desktop/desktop" %>
<%= javascript_include_tag "desktop/desktop" %>
<%= csrf_meta_tag %>
</head>
<body>