Skip to content

Commit

Permalink
UI: better job ID display
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed May 25, 2016
1 parent fb8c4ae commit 44215c6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions arachnado/static/js/components/JobList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,7 @@ function _getRowInfo(job, curTime){
var stats = job.stats || {};
var status = simplifiedStatus(job.status);
var downloaded = stats['downloader/response_bytes'] || 0;


var shortId = job.id;
if (job.job_id) {
shortId = shortId + ": " + job.job_id.slice(-5);
}
var shortId = job.id.slice(0, 5) + "…";

var duration = 0;
if (stats['start_time']) {
Expand Down Expand Up @@ -265,7 +260,7 @@ var JobRowVerbose = React.createClass({
var job = this.props.job;
var info = _getRowInfo(job, this.props.serverTime);
var columns = [
<th key='col-id' scope="row">{info.id}</th>
<th key='col-id' scope="row">{job.id}</th>
];
var data = [
job.seed,
Expand Down

0 comments on commit 44215c6

Please sign in to comment.