diff --git a/plugins/c9.ide.server/views/classic-load-screen.html b/plugins/c9.ide.server/views/classic-load-screen.html new file mode 100644 index 00000000..efcbd03f --- /dev/null +++ b/plugins/c9.ide.server/views/classic-load-screen.html @@ -0,0 +1,36 @@ + +
+ +
+
+ Loading your workspace +
+
+
It will be just as you left it
+ +
+
+ +
+
+
+ +
+ \ No newline at end of file diff --git a/plugins/c9.ide.server/views/flat-load-screen.html b/plugins/c9.ide.server/views/flat-load-screen.html new file mode 100644 index 00000000..66891f3a --- /dev/null +++ b/plugins/c9.ide.server/views/flat-load-screen.html @@ -0,0 +1,57 @@ + +
"> +
+ + +
+
+ +
+ \ No newline at end of file diff --git a/plugins/c9.ide.server/views/load-screen.ejs b/plugins/c9.ide.server/views/load-screen.ejs new file mode 100644 index 00000000..a794d4d8 --- /dev/null +++ b/plugins/c9.ide.server/views/load-screen.ejs @@ -0,0 +1,28 @@ +<% + var plugins = architectConfig; + var theme = "flat-light", html; + plugins.some(function(n){ + if (n.packagePath == "plugins/c9.core/settings") { + if (n.html) html = n.html; + + try { var settings = JSON.parse(n.settings.user); } + catch(e) { return; } + + theme = settings.general && settings.general["@skin"] || ""; + if (typeof theme != "string") theme = ""; + + return true; + } + }); + + var isDark = theme.indexOf("dark") > -1; + if (!html) { + var isFlat = theme.indexOf("flat") > -1; + %><% include flat-load-screen.html %><% + } + else { + %>
"> + <%-: html %> +
<% + } +%> \ No newline at end of file