Skip to content

Commit

Permalink
BDOG-205 adds header to slug count columns, swaps qa and prod column …
Browse files Browse the repository at this point in the history
…order
  • Loading branch information
christopherjturner committed May 31, 2019
1 parent 5765284 commit 98ece6b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/views/BobbyExplorerPage.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,20 @@ <h1>Bobby Rules</h1>
<div>
<table class="@{artifactType.toLowerCase}-rules table table-striped">
<thead>

<tr>
<th colspan="6"></th>
<th colspan="3" style="text-align: center;">Services Affected</th>
</tr>

<tr>
<th class="col-xs-3">@artifactType</th>
<th class="col-xs-2" colspan="3">Banned Versions</th>
<th class="col-xs-3" colspan="1">@artifactType</th>
<th class="col-xs-2" colspan="3" style="text-align: center">Banned Versions</th>
<th class="col-xs-4">Reason</th>
<th class="col-xs-2">Active from</th>
<th class="">Active from</th>
<th class="">Latest</th>
<th class="">Prod</th>
<th class="">QA</th>
<th class="">Prod</th>
</tr>
</thead>
<tbody>
Expand All @@ -79,9 +85,9 @@ <h1>Bobby Rules</h1>
@defining(rule.range.rangeDescr) { rangeDescr =>
@rangeDescr match {
case Some((lbDescr, upDescr)) => {
<td data-toggle="tooltip" title="@rule.range.range" style="white-space: nowrap; padding-right: 0; text-align: right">@lbDescr</td>
<td data-toggle="tooltip" title="@rule.range.range">x</td>
<td data-toggle="tooltip" title="@rule.range.range" style="white-space: nowrap; padding-left: 0; text-align: left">@upDescr</td>
<td class="bobby-range" data-toggle="tooltip" title="@rule.range.range" style="white-space: nowrap; padding-right: 0; text-align: right">@lbDescr</td>
<td class="bobby-range" data-toggle="tooltip" title="@rule.range.range">x</td>
<td class="bobby-range" data-toggle="tooltip" title="@rule.range.range" style="white-space: nowrap; padding-left: 0; text-align: left">@upDescr</td>
}
case None => {
<td colspan="3">@rule.range.range</td>
Expand All @@ -91,15 +97,9 @@ <h1>Bobby Rules</h1>
<td>@rule.reason</td>
<td>@rule.from</td>
@if(inclViewSlugsLink) {
<td>
@bobbyViolationLink(rule, SlugInfoFlag.Latest, counts(SlugInfoFlag.Latest.s).getOrElse(rule, 0))
</td>
<td>
@bobbyViolationLink(rule, SlugInfoFlag.Production, counts(SlugInfoFlag.Production.s).getOrElse(rule, 0))
</td>
<td>
@bobbyViolationLink(rule, SlugInfoFlag.QA, counts(SlugInfoFlag.QA.s).getOrElse(rule, 0))
</td>
<td>@bobbyViolationLink(rule, SlugInfoFlag.Latest, counts(SlugInfoFlag.Latest.s).getOrElse(rule, 0))</td>
<td>@bobbyViolationLink(rule, SlugInfoFlag.QA, counts(SlugInfoFlag.QA.s).getOrElse(rule, 0))</td>
<td>@bobbyViolationLink(rule, SlugInfoFlag.Production, counts(SlugInfoFlag.Production.s).getOrElse(rule, 0))</td>
}else {
<td></td>
<td></td>
Expand Down

0 comments on commit 98ece6b

Please sign in to comment.