Don't show support references in standalone mode

pull/385/head
Lennart Kats 2016-11-11 10:19:35 +00:00
rodzic fdd4297e0c
commit 61f22360a3
6 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -706,7 +706,8 @@ module.exports = function(options) {
},
{
packagePath: "plugins/c9.ide.help/help",
staticPrefix: staticPrefix + "/plugins/c9.ide.help"
staticPrefix: staticPrefix + "/plugins/c9.ide.help",
hosted: hosted
},
{
packagePath: "plugins/c9.ide.guide/guide",

Wyświetl plik

@ -96,7 +96,7 @@
"c9.ide.immediate": "#0b0ee744f9",
"c9.ide.installer": "#2921efaf6d",
"c9.ide.language.python": "#ec0b9070a4",
"c9.ide.language.go": "#6ce1c7a7ef",
"c9.ide.language.go": "#84b5636301",
"c9.ide.navigate": "#5d5707058c",
"c9.ide.newresource": "#981a408a7b",
"c9.ide.openfiles": "#2ae85a9e33",

Wyświetl plik

@ -21,10 +21,8 @@ define(function(require, exports, module) {
var aboutDialog;
var loaded = false;
function load(){
if (loaded) return false;
loaded = true;
function load() {
if (!options.hosted) return;
var mnuHelp = new ui.menu();
menus.addItemByPath("Support/", mnuHelp, 900, plugin);
@ -151,7 +149,6 @@ define(function(require, exports, module) {
});
plugin.on("unload", function(){
loaded = false;
drawn = false;
});

Wyświetl plik

@ -17,7 +17,9 @@
<div class="footer">
<a href="https://docs.c9.io">Documentation</a> |
<a href="http://status.c9.io">Server Status</a> |
<a href="http://support.c9.io">Support</a>
<% if (!standalone) { %>
<a href="http://support.c9.io">Support</a>
<% } %>
</div>
</div>
<script type="text/javascript">

Wyświetl plik

@ -9,7 +9,9 @@
<div class="footer">
<a href="https://docs.c9.io">Documentation</a> |
<a href="http://status.c9.io">Server Status</a> |
<a href="http://support.c9.io">Support</a>
<% if (!standalone) { %>
<a href="http://support.c9.io">Support</a>
<% } %>
</div>
</div>
</div>

Wyświetl plik

@ -116,6 +116,7 @@ function plugin(options, imports, register) {
architectConfig: getConfig(configName, opts),
configName: configName,
packed: opts.packed,
standalone: true,
version: opts.version
}, next);
});