mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 04:57:35 +00:00
use table for listings
This commit is contained in:
parent
b2ed8568ca
commit
d17cb1fccc
1 changed files with 17 additions and 21 deletions
|
@ -40,44 +40,40 @@
|
||||||
<h2>@category.Name</h2>
|
<h2>@category.Name</h2>
|
||||||
<p>@category.Description</p>
|
<p>@category.Description</p>
|
||||||
|
|
||||||
<div class="row">
|
<table class="table">
|
||||||
<div class="col-xs-6">
|
<tr>
|
||||||
<strong>Open</strong>
|
<th class="width:50%">Open</th>
|
||||||
</div>
|
<th>Urgency</th>
|
||||||
<div class="col-xs-3">
|
<th>Actions</th>
|
||||||
<strong>Urgency</strong>
|
</tr>
|
||||||
</div>
|
|
||||||
<div class="col-xs-3">
|
|
||||||
<strong>Actions</strong>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@foreach(var bug in category.Open.OrderByDescending(x=>x.Urgency))
|
@foreach(var bug in category.Open.OrderByDescending(x=>x.Urgency))
|
||||||
{
|
{
|
||||||
<div class="row">
|
<tr>
|
||||||
<div class="col-xs-6">
|
<td>
|
||||||
<strong><a href="#md_@bug.Id" data-toggle="modal"></a></strong><br/>
|
<strong><a href="#md_@bug.Id" data-toggle="modal"></a></strong><br/>
|
||||||
<p>Reported at: @bug.ReportedAt • Reported by: @Html.UserLink(bug.Reporter)</p>
|
<p>Reported at: @bug.ReportedAt • Reported by: @Html.UserLink(bug.Reporter)</p>
|
||||||
</div>
|
</td>
|
||||||
@switch (bug.Urgency)
|
@switch (bug.Urgency)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
<div class="col-xs-3"><strong>Minor</strong></div>
|
<td><strong>Minor</strong></td>
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
<div class="col-xs-3 panel-primary"><strong>Moderate</strong></div>
|
<td><strong>Moderate</strong></td>
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
<div class="col-xs-3 panel-warning"><strong>Major</strong></div>
|
<td class="warning"><sttrong>Major</sttrong></td>
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
<div class="col-xs-3 panel-danger"><strong>Critical</strong></div>
|
<td class="danger"><strong>Critical</strong></td>
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
<div class="col-xs-3">
|
<td>
|
||||||
<a class="btn btn-primary" href="@Url.Action("CloseBug", new {id=bug.Id})"><span class="glyphicon glyphicon-ok"></span> Close bug report</a>
|
<a class="btn btn-primary" href="@Url.Action("CloseBug", new {id=bug.Id})"><span class="glyphicon glyphicon-ok"></span> Close bug report</a>
|
||||||
</div>
|
</td>
|
||||||
</div>
|
</tr>
|
||||||
}
|
}
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue