Commit b106fc52 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

link to documentation from website

parent 9b196d1b
......@@ -74,6 +74,11 @@ Admin.prototype._createGui = function () {
for (var i = 0; i < panels.length; i++) {
self.getGuiUtils().addTab(self, panels[i]);
}
var navElement = $(this.getElement()).find("> .parentTabs > .nav-tabs")[0];
var navLi = $.parseHTML("<li style='flex-grow:1;margin-top:5px;text-align:right'><a target='_api_docs' href='" + self.getServerConnector().getServerBaseUrl() + "docs/'>API docs</a></li>");
$(navElement).append(navLi);
self.addLogoutButton($(this.getElement()).find("> .parentTabs > .nav-tabs")[0]);
};
......@@ -87,9 +92,10 @@ Admin.prototype.addLogoutButton = function (navElement) {
var navLi = document.createElement("li");
navLi.appendChild(logoutLink);
$(navLi).css("position", "absolute");
$(navLi).css("right", "5px");
$(navLi).css("top", "5px");
$(navLi).css("text-align", "right");
$(navLi).css("margin-top", "5px");
$(navLi).css("margin-right", "5px");
$(navLi).css("margin-left", "15px");
navElement.appendChild(navLi);
};
......
......@@ -44,7 +44,7 @@ OptionsMenu.prototype._createMenuGui = function () {
customMap: self.getMap(),
pluginManager: self.getPluginManager(),
configuration: self.getConfiguration(),
project:self.getProject()
project: self.getProject()
});
initPromise = self._pluginDialog.init();
}
......@@ -53,6 +53,12 @@ OptionsMenu.prototype._createMenuGui = function () {
})
}
});
self.addOption({
name: "API docs",
handler: function () {
window.open(self.getServerConnector().getServerBaseUrl() + "docs/", '_api_docs');
}
});
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment