You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/11/01 18:16:47 UTC

mesos git commit: Show the leader hostname and hyperlink in WebUI.

Repository: mesos
Updated Branches:
  refs/heads/master 44797d703 -> 892ea1ea7


Show the leader hostname and hyperlink in WebUI.

Review: https://reviews.apache.org/r/53285/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/892ea1ea
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/892ea1ea
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/892ea1ea

Branch: refs/heads/master
Commit: 892ea1ea7d2836b062d34cfb857c23f192377757
Parents: 44797d7
Author: haosdent huang <ha...@gmail.com>
Authored: Tue Nov 1 11:14:13 2016 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Tue Nov 1 11:15:47 2016 -0700

----------------------------------------------------------------------
 src/webui/master/static/home.html | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/892ea1ea/src/webui/master/static/home.html
----------------------------------------------------------------------
diff --git a/src/webui/master/static/home.html b/src/webui/master/static/home.html
index 07f862f..47e9f7e 100644
--- a/src/webui/master/static/home.html
+++ b/src/webui/master/static/home.html
@@ -19,8 +19,14 @@
               tooltip-placement="right"></i>
           </span>
         </dd>
-        <dt>Server:</dt>
-        <dd>{{state.pid.split("@")[1]}}</dd>
+        <dt>Leader:</dt>
+        <dd>
+          <a ng-show="state.leader_info"
+             href="//{{state.leader_info.hostname}}:{{state.leader_info.port}}">
+            {{state.leader_info.hostname + ':' + state.leader_info.port}}
+          </a>
+          <span ng-show="!state.leader_info">(Unknown)</span>
+        </dd>
         <dt>Version:</dt>
         <dd>{{state.version}}</dd>
         <dt>Built:</dt>