diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index b56e384b8..5a0d79fcd 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -761,6 +761,7 @@ orbitDesktop.prototype.notifyImgPath = "temp"; orbitDesktop.prototype.wallpaperPath = "/assets/stockBackground/"; orbitDesktop.prototype.iconPath = "/assets/icons/"; orbitDesktop.prototype.currentLanguage = "en"; +orbitDesktop.prototype.currentUsername = "Harry"; var uselessfunction = function(){ $.post("/desktop/temp_func",{sectionid:"4f83e7bbbd98eb041600001d"}); } diff --git a/app/controllers/desktop_controller.rb b/app/controllers/desktop_controller.rb index 997267be2..249f9dcac 100644 --- a/app/controllers/desktop_controller.rb +++ b/app/controllers/desktop_controller.rb @@ -6,6 +6,8 @@ class DesktopController< ApplicationController def index @desktop = current_user.desktop + @currentusername = current_user.name + @title = "Desktop - " + @currentusername @section = @desktop.sections.first end diff --git a/app/views/desktop/index.html.erb b/app/views/desktop/index.html.erb index ebe4048ca..46f851cf5 100755 --- a/app/views/desktop/index.html.erb +++ b/app/views/desktop/index.html.erb @@ -87,14 +87,14 @@ -