Feature #37: Stale Jobs

Stale Jobs replaces Long-Running Jobs on the homepage. Last Activity is
added to the job table.
This commit is contained in:
Gary Sharp
2014-02-13 22:17:49 +11:00
parent 2ac3a9bdd3
commit 68256d7abd
30 changed files with 881 additions and 330 deletions
@@ -15,6 +15,9 @@
@if (Model.ShowStatus)
{ <th class="status">Status
</th> }
@if (Model.ShowLastActivityDate)
{ <th class="lastActive">Last Active
</th> }
@if (Model.ShowDates)
{ <th class="dates">When
</th> }
@@ -74,6 +77,8 @@
}
</div>}
</td>}
@if (Model.ShowLastActivityDate)
{<td class="lastActive">@CommonHelpers.FriendlyDate(item.LastActivityDate)</td>}
@if (Model.ShowDates)
{<td class="dates">@if (item.ClosedDate.HasValue)
{@CommonHelpers.FriendlyDate(item.ClosedDate.Value)}
@@ -106,7 +111,7 @@
@if (Model.ShowTechnician)
{<td class="technician"><span title="@item.OpenedTechUserDisplayName">@item.OpenedTechUserId</span></td>}
@if (Model.ShowLocation)
{<td class="technician"><span>@(item.DeviceHeldLocation ?? "Unknown")</span></td>}
{<td class="location"><span>@(item.DeviceHeldLocation ?? "Unknown")</span></td>}
</tr>}
</tbody>
</table>