Merge pull request +15040 from c9/ide-support-links

Don't show support references in standalone mode
pull/385/head
Lennart C. L. Kats 2016-12-21 14:03:53 +01:00 zatwierdzone przez GitHub
commit 5a333e9868
5 zmienionych plików z 11 dodań i 8 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

@ -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);
});