Updated WebUI to display role information under the 'Offers' tab.

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


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

Branch: refs/heads/master
Commit: c3964fb173c98224c9faff50805961b006b56a06
Parents: 1235e29
Author: Jay Guo <[email protected]>
Authored: Wed Mar 1 14:09:10 2017 -0800
Committer: Benjamin Mahler <[email protected]>
Committed: Wed Mar 1 14:10:45 2017 -0800

----------------------------------------------------------------------
 src/webui/master/static/offers.html | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c3964fb1/src/webui/master/static/offers.html
----------------------------------------------------------------------
diff --git a/src/webui/master/static/offers.html 
b/src/webui/master/static/offers.html
index 181fc2d..2f7aca3 100644
--- a/src/webui/master/static/offers.html
+++ b/src/webui/master/static/offers.html
@@ -12,6 +12,7 @@
   <thead>
     <tr>
       <th data-key="id">ID</th>
+      <th data-key="role">Role</th>
       <th data-key="framework_name">Framework</th>
       <th data-key="hostname">Host</th>
       <th data-key="resources.cpus">CPUs</th>
@@ -25,6 +26,8 @@
       <td>
         <abbr title="{{offer.id}}">{{offer.id | truncateMesosID}}</abbr>
       </td>
+      <!-- Make this a link to the role overview -->
+      <td>{{offer.allocation_info.role}}</td>
       <td>
         <a href="{{'#/frameworks/' + offer.framework_id}}">
           {{offer.framework_name}}

Reply via email to