HBASE-6242. New UI should color task list entries (Elliott Clark)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1352690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2012-06-21 21:13:09 +00:00
parent 4b1a528bdd
commit 042965f8da
1 changed files with 11 additions and 2 deletions

View File

@ -68,7 +68,7 @@ boolean first = true;
<%if tasks.isEmpty()%>
<p>No tasks currently running on this node.</p>
<%else>
<table class="table table-striped">
<table class="table">
<tr>
<th>Start Time</th>
<th>Description</th>
@ -76,7 +76,7 @@ boolean first = true;
<th>Status</th>
</tr>
<%for MonitoredTask task : tasks %>
<tr class="task-monitor-<% task.getState() %>">
<tr class="<& stateCss; state = task.getState() &>">
<td><% new Date(task.getStartTime()) %></td>
<td><% task.getDescription() %></td>
<td><% task.getState() %>
@ -91,3 +91,12 @@ boolean first = true;
</%if>
</%if>
<%def stateCss>
<%args>
MonitoredTask.State state;
</%args>
<%java> if (state == MonitoredTask.State.COMPLETE) { </%java>alert alert-success<%java> } </%java>
<%java> else if (state == MonitoredTask.State.ABORTED) { </%java>alert alert-error<%java> } </%java>
</%def>