GIT: perform LF normalization

This commit is contained in:
Gary Sharp
2013-02-28 17:15:46 +11:00
parent 989f08a24d
commit 7d9be5620d
729 changed files with 300734 additions and 300712 deletions
+108 -108
View File
@@ -1,108 +1,108 @@
@model Disco.Models.BI.Job.JobTableModel
@{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-DataTableHelpers");
}
<div class="jobTable">
@if (Model != null && Model.Items.Count() > 0)
{
<table class="jobTable@(Model.IsSmallTable ? " smallTable" : string.Empty)@(Model.HideClosedJobs ? " hideStatusClosed" : string.Empty)">
<thead>
<tr>
@if (Model.ShowId)
{ <th class="id">
Ref
</th> }
@if (Model.ShowStatus)
{ <th class="status">
Status
</th> }
@if (Model.ShowDates)
{ <th class="dates">
Dates
</th> }
@if (Model.ShowType)
{ <th class="type">
Type
</th> }
@if (Model.ShowDevice)
{<th class="device">
Device
</th> }
@if (Model.ShowUser)
{ <th class="user">
User
</th> }
@if (Model.ShowTechnician)
{ <th class="technician">
Technician
</th> }
@if (Model.ShowLocation)
{ <th class="location">
Location
</th> }
</tr>
</thead>
<tbody>
@foreach (var item in Model.Items)
{
<tr data-id="@(item.Id)" data-status="@(Model.ShowStatus ? item.StatusId : null)">
@if (Model.ShowId)
{ <td class="id">
@Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id))
</td> }
@if (Model.ShowStatus)
{ <td class="status">
<span class="icon JobStatus@(item.StatusId)"></span>
@item.StatusDescription
</td> }
@if (Model.ShowDates)
{ <td class="dates">
@CommonHelpers.FriendlyDate(item.OpenedDate)
- @CommonHelpers.FriendlyDate(item.ClosedDate)
</td>}
@if (Model.ShowType)
{ <td class="type">
<span title="@item.TypeDescription">@item.TypeId</span>
</td>}
@if (Model.ShowDevice)
{ <td class="device">
@if (item.DeviceSerialNumber != null)
{
@Html.ActionLink(item.DeviceSerialNumber, MVC.Device.Show(item.DeviceSerialNumber), new { Title = item.DeviceModelDescription })
}
else
{
<span class="smallMessage">N/A</span>
}
</td> }
@if (Model.ShowUser)
{<td class="user">
@if (item.UserId != null)
{
@Html.ActionLink(string.Format("{0} ({1})", item.UserDisplayName, item.UserId), MVC.User.Show(item.UserId))
}
else
{
<span class="smallMessage">N/A</span>
}
</td>}
@if (Model.ShowTechnician)
{ <td class="technician">
<span title="@item.OpenedTechUserDisplayName">@item.OpenedTechUserId
</span>
</td>}
@if (Model.ShowLocation)
{ <td class="technician">
<span>@(item.Location ?? "Unknown")
</span>
</td>}
</tr>
}
</tbody>
</table>
}
else
{
<span class="smallMessage">No Jobs Found</span>
}
</div>
@model Disco.Models.BI.Job.JobTableModel
@{
Html.BundleDeferred("~/ClientScripts/Modules/Disco-DataTableHelpers");
}
<div class="jobTable">
@if (Model != null && Model.Items.Count() > 0)
{
<table class="jobTable@(Model.IsSmallTable ? " smallTable" : string.Empty)@(Model.HideClosedJobs ? " hideStatusClosed" : string.Empty)">
<thead>
<tr>
@if (Model.ShowId)
{ <th class="id">
Ref
</th> }
@if (Model.ShowStatus)
{ <th class="status">
Status
</th> }
@if (Model.ShowDates)
{ <th class="dates">
Dates
</th> }
@if (Model.ShowType)
{ <th class="type">
Type
</th> }
@if (Model.ShowDevice)
{<th class="device">
Device
</th> }
@if (Model.ShowUser)
{ <th class="user">
User
</th> }
@if (Model.ShowTechnician)
{ <th class="technician">
Technician
</th> }
@if (Model.ShowLocation)
{ <th class="location">
Location
</th> }
</tr>
</thead>
<tbody>
@foreach (var item in Model.Items)
{
<tr data-id="@(item.Id)" data-status="@(Model.ShowStatus ? item.StatusId : null)">
@if (Model.ShowId)
{ <td class="id">
@Html.ActionLink(item.Id.ToString(), MVC.Job.Show(item.Id))
</td> }
@if (Model.ShowStatus)
{ <td class="status">
<span class="icon JobStatus@(item.StatusId)"></span>
@item.StatusDescription
</td> }
@if (Model.ShowDates)
{ <td class="dates">
@CommonHelpers.FriendlyDate(item.OpenedDate)
- @CommonHelpers.FriendlyDate(item.ClosedDate)
</td>}
@if (Model.ShowType)
{ <td class="type">
<span title="@item.TypeDescription">@item.TypeId</span>
</td>}
@if (Model.ShowDevice)
{ <td class="device">
@if (item.DeviceSerialNumber != null)
{
@Html.ActionLink(item.DeviceSerialNumber, MVC.Device.Show(item.DeviceSerialNumber), new { Title = item.DeviceModelDescription })
}
else
{
<span class="smallMessage">N/A</span>
}
</td> }
@if (Model.ShowUser)
{<td class="user">
@if (item.UserId != null)
{
@Html.ActionLink(string.Format("{0} ({1})", item.UserDisplayName, item.UserId), MVC.User.Show(item.UserId))
}
else
{
<span class="smallMessage">N/A</span>
}
</td>}
@if (Model.ShowTechnician)
{ <td class="technician">
<span title="@item.OpenedTechUserDisplayName">@item.OpenedTechUserId
</span>
</td>}
@if (Model.ShowLocation)
{ <td class="technician">
<span>@(item.Location ?? "Unknown")
</span>
</td>}
</tr>
}
</tbody>
</table>
}
else
{
<span class="smallMessage">No Jobs Found</span>
}
</div>