Skip to content

Commit

Permalink
Highlight current page button, link to the most recent attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuol committed Jan 28, 2016
1 parent 430d283 commit 0c55712
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -64,7 +64,7 @@
<tbody>
{{#applications}}
<tr>
<td class="rowGroupColumn"><a href="/history/{{id}}/1/jobs/">{{id}}</a></td>
<td class="rowGroupColumn"><a href="/history/{{id}}/{{num}}/jobs/">{{id}}</a></td>
<td class="rowGroupColumn">{{name}}</td>
{{#attempts}}
<td class="attemptIDSpan"><a href="/history/{{id}}/{{attemptId}}/jobs/">{{attemptId}}</a></td>
Expand Down
Expand Up @@ -92,13 +92,13 @@ $(document).ready(function() {
if (app["attempts"].length > 1) {
hasMultipleAttempts = true;
}
var num = app["attempts"].length;
for (j in app["attempts"]) {
var attempt = app["attempts"][j];
attempt["startTime"] = formatDate(attempt["startTime"]);
attempt["endTime"] = formatDate(attempt["endTime"]);
attempt["lastUpdated"] = formatDate(attempt["lastUpdated"]);

var app_clone = {"id" : id, "name" : name, "attempts" : [attempt]};
var app_clone = {"id" : id, "name" : name, "num" : num, "attempts" : [attempt]};
array.push(app_clone);
}
}
Expand Down
Expand Up @@ -43,7 +43,7 @@ private[history] class HistoryPage(parent: HistoryServer) extends WebUIPage("")
{
if (allAppsSize > 0) {
<script src={UIUtils.prependBaseUri("/static/dataTables.rowsGroup.js")}></script> ++
<div id="history-summary" class="span12"></div> ++
<div id="history-summary" class="span12 pagination"></div> ++
<script src={UIUtils.prependBaseUri("/static/historypage.js")}> </script>
} else if (requestedIncomplete) {
<h4>No incomplete applications found!</h4>
Expand Down

0 comments on commit 0c55712

Please sign in to comment.