import TaskStatus from './TaskStatus';
import TaskComponent from './TaskComponent';
+import TaskId from './TaskId';
import TaskDay from './TaskDay';
import TaskDate from './TaskDate';
import TaskExecutionTime from './TaskExecutionTime';
<tr>
<TaskStatus task={task}/>
<TaskComponent task={task} types={types}/>
+ <TaskId task={task}/>
<TaskDay task={task} prevTask={prevTask}/>
<TaskDate date={task.submittedAt} baseDate={task.submittedAt} format="LTS"/>
<TaskDate date={task.startedAt} baseDate={task.submittedAt} format="LTS"/>
--- /dev/null
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+import React from 'react';
+
+import { translate } from '../../../helpers/l10n';
+
+const TaskId = ({ task }) => {
+ return (
+ <td className="thin nowrap">
+ <div className="note">
+ {task.id}
+ </div>
+ </td>
+ );
+};
+
+export default TaskId;
const TaskType = ({ task }) => {
return (
- <span className="note spacer-left">
+ <span className="note nowrap spacer-left">
{'['}
{translate('background_task.type', task.type)}
{']'}
<table className={className}>
<thead>
<tr>
+ <th>{translate('background_tasks.table.status')}</th>
+ <th>{translate('background_tasks.table.task')}</th>
+ <th>{translate('background_tasks.table.id')}</th>
<th> </th>
- <th> </th>
- <th> </th>
- <th>{translate('background_tasks.table.submitted')}</th>
- <th>{translate('background_tasks.table.started')}</th>
- <th>{translate('background_tasks.table.finished')}</th>
- <th>{translate('background_tasks.table.duration')}</th>
+ <th className="text-right">{translate('background_tasks.table.submitted')}</th>
+ <th className="text-right">{translate('background_tasks.table.started')}</th>
+ <th className="text-right">{translate('background_tasks.table.finished')}</th>
+ <th className="text-right">{translate('background_tasks.table.duration')}</th>
<th> </th>
</tr>
</thead>
background_tasks.date_filter.TODAY=Today
background_tasks.date_filter.CUSTOM=Custom
+background_tasks.table.status=Status
+background_tasks.table.task=Task
+background_tasks.table.id=ID
background_tasks.table.submitted=Submitted
background_tasks.table.started=Started
background_tasks.table.finished=Finished