mirror of https://gitee.com/bigwinds/arangodb
Added a link to the cluster overview and replaced tcp with http and ssl with https for clickable links
This commit is contained in:
parent
0636233f02
commit
927a5de782
|
@ -17,6 +17,17 @@
|
|||
</div>
|
||||
|
||||
<legend class="gv_inner">The following ArangoDBs have been started</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Cluster Overview</label>
|
||||
<div class="controls">
|
||||
<%
|
||||
var first = roles.indexOf("Coordinator");
|
||||
if (first > -1) {
|
||||
%>
|
||||
<a href="<%=endpoints[first]%>/_db/_system/_admin/aardvark/cluster.html">Cluster Overview</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
<% for(var i = 0; i < endpoints.length; ++i) { %>
|
||||
<div class="control-group">
|
||||
<label for="host" class="control-label"><%= roles[i] %>:</label>
|
||||
|
@ -24,7 +35,7 @@
|
|||
<% if(roles[i] === "DBserver") { %>
|
||||
<span><%= endpoints[i] %></span>
|
||||
<% } else { %>
|
||||
<a href="<%='http://' + endpoints[i].substr(6)%>"><%= endpoints[i] %></a>
|
||||
<a href="<%=endpoints[i]%>"><%= endpoints[i] %></a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,9 @@
|
|||
this.content = "data:application/octet-stream," + encodeURIComponent(JSON.stringify(content, 2));
|
||||
var toShow = _.findWhere(content.runInfo.runInfo, {isStartServers: true});
|
||||
$(this.el).html(this.template.render({
|
||||
endpoints: toShow.endpoints,
|
||||
endpoints: _.map(toShow.endpoints, function(e) {
|
||||
return e.replace("tcp://","http://").replace("ssl://", "https://");
|
||||
}),
|
||||
roles: toShow.roles
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue