Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bdog 53 #40

Merged
merged 7 commits into from
Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion app/assets/catalogue-frontend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,15 @@ section {
font-size: 9px;
}


.board__heading .accordion-toggle:after {
/* symbol for "opening" panels */
font-family: 'Glyphicons Halflings';
content: "\e114";
float: right;
color: grey;
}

.board__heading .accordion-toggle.collapsed:after {
/* symbol for "collapsed" panels */
content: "\e080";
}
23 changes: 19 additions & 4 deletions app/views/partials/code_and_builds.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,25 @@ <h3 class="board__heading">Code and Build</h3>
<li class="list-item"><a id="link-to-@{ciLink.id}" href="@{ciLink.url}" target="_blank">@{ciLink.displayName}<span class="glyphicon glyphicon-new-window"/></a></li>
}
@if(CatalogueFrontendSwitches.routingRules.isEnabled && environmentRoute.isDefined) {
@for((route, index) <- environmentRoute.get.routes.zipWithIndex) {
<li id="route-rule-@index" class="list-item">
<a target="_blank" title="@route.frontendPath" href="@route.ruleConfigurationUrl">Routing Configuration: '@route.frontendPath' <span class="glyphicon glyphicon-new-window"/></a>
</li>
@defining(environmentRoute.get.routes.size > 3) { collapsable =>
<div class="board">
<h5 class="board__heading" id="headingRSU">
<div class="@if(collapsable){accordion-toggle collapsed}" data-toggle="@if(collapsable) {collapse}" data-target="#collapseRSU" aria-expanded="@if(collapsable) {false} else {true}" aria-controls="collapseRSU">
Routing Configuration(s):
</div>
</h5>
<div class="board__body">
<div id="collapseRSU" class="@if(collapsable) {collapse}" aria-labelledby="headingRSU">
<ul id="production-urls" class="list list--minimal">
@for((route, index) <- environmentRoute.get.routes.zipWithIndex) {
<li id="route-rule-@index" class="list-item">
<a target="_blank" title="@route.frontendPath" href="@route.ruleConfigurationUrl">@route.frontendPath<span class="glyphicon glyphicon-new-window"/></a>
</li>
}
</ul>
</div>
</div>
</div>
}
}
</ul>
Expand Down
42 changes: 27 additions & 15 deletions app/views/partials/details.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,34 @@ <h3 class="board__heading">Details</h3>
</li>
</ul>
@if(CatalogueFrontendSwitches.routingRules.isEnabled && environmentRoute.isDefined) {
<ul id="service-urls-section" class="list list--minimal">
<li class="list-item">
<label>URL(s):</label>
<ul id="production-urls" class="list list--minimal">
@for((route, index) <- environmentRoute.get.routes.zipWithIndex) {
<li id="url-@index" class="list-item">
@if(route.isRegex) {
@route.frontendPath
} else {
<a href="https://[email protected]" target="_blank">@route.frontendPath <span class="glyphicon glyphicon-new-window"/></a>
}
</li>
}
@defining(environmentRoute.get.routes.size > 3) { collapsable =>
<ul id="service-urls-section" class="list list--minimal">
<div class="board">
<li class="list-item">
<h5 class="board__heading" id="headingSU">
<div class="@if(collapsable){accordion-toggle collapsed}" data-toggle="@if(collapsable) {collapse}" data-target="#collapseSU" aria-expanded="@if(collapsable) {false} else {true}" aria-controls="collapseSU">
URL(s):
</div>
</h5>
<div class="board__body">
<div id="collapseSU" class="@if(collapsable) {collapse}" aria-labelledby="headingSU">
<ul id="production-urls" class="list list--minimal">
@for((route, index) <- environmentRoute.get.routes.zipWithIndex) {
<li id="url-@index" class="list-item">
@if(route.isRegex) {
@route.frontendPath
} else {
<a href="https://[email protected]" target="_blank">@route.frontendPath <span class="glyphicon glyphicon-new-window"/></a>
}
</li>
}
</ul>
</div>
</div>
</li>
</div>
</ul>
</li>
</ul>
}
}
</div>
</div>
Expand Down
59 changes: 33 additions & 26 deletions app/views/partials/serviceRouteRuleViolations.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,39 @@

@(serviceRoutes: ServiceRoutes)
@if(CatalogueFrontendSwitches.routingRules.isEnabled && serviceRoutes.hasInconsistentRoutes) {
<div id="routing-rule-violations" >
<div class="board" class="col-md-12">
<h3 class="board__heading red">Inconsistent Route Rules</h3>
<div class="board__body">
<table id="routing-rule-list" class="table">
<tr>
<th class="col-lg-2">Environment</th>
<th class="col-lg-10">Route Rule</th>
</tr>
<tbody>
@for(environmentRoute <- serviceRoutes.inconsistentRoutes) {
@for(route <- environmentRoute.routes) {
<tr>
<td>
<a target="_blank" href="@route.ruleConfigurationUrl" title="Route Rule Configuration">@environmentRoute.environment <span class="glyphicon glyphicon-new-window"/></a>
</td>
<td>
@route.frontendPath
</td>
</tr>
}
}
</tbody>
</table>
</ul>
@defining(serviceRoutes.inconsistentRoutes.size > 3) { collapsable =>
<div id="routing-rule-violations" >
<div class="accordion board" class="col-md-12">
<h3 class="board__heading red" id="headingSRRV">
<div class="@if(collapsable){accordion-toggle collapsed}" data-toggle="@if(collapsable) {collapse}" data-target="#collapseSRRV" aria-expanded="@if(collapsable) {false} else {true}" aria-controls="collapseSRRV">
Inconsistent Route Rules
</div>
</h3>
<div id="collapseSRRV" class="@if(collapsable) {collapse}" aria-labelledby="headingSRRV">
<div class="board__body">
<table id="routing-rule-list" class="table">
<tr>
<th class="col-lg-2">Environment</th>
<th class="col-lg-10">Route Rule</th>
</tr>
<tbody>
@for(environmentRoute <- serviceRoutes.inconsistentRoutes) {
@for(route <- environmentRoute.routes) {
<tr>
<td>
<a target="_blank" href="@route.ruleConfigurationUrl" title="Route Rule Configuration">@environmentRoute.environment <span class="glyphicon glyphicon-new-window"/></a>
</td>
<td>
@route.frontendPath
</td>
</tr>
}
}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
}
}
25 changes: 0 additions & 25 deletions catalogue-frontend.css

This file was deleted.

16 changes: 15 additions & 1 deletion public/catalogue-frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -11763,7 +11763,7 @@ h1 {
padding-bottom: .2em;
border-bottom: 3px solid #008770; }

h1, h2, h3, h4 {
h1, h2, h3, h4, h5 {
color: #008770;
font-weight: 700; }

Expand Down Expand Up @@ -11830,6 +11830,7 @@ section span.other-teams-message {
.list {
overflow: hidden;
padding-left: 1.2em;
padding-right: 1.2em;
list-style: disc;
color: #6f777b;
margin-bottom: .4em; }
Expand Down Expand Up @@ -12028,4 +12029,17 @@ section span.other-teams-message {
position:relative;
z-index:0;
width: 100%;
}

.accordion-toggle:after {
/* symbol for "opening" panels */
font-family: 'Glyphicons Halflings';
content: "\e114";
float: right;
color: grey;
}

.accordion-toggle.collapsed:after {
/* symbol for "collapsed" panels */
content: "\e080";
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/ChartDataSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/JsonData.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/LibrariesSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/LibraryPageSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/PrototypePageSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/PrototypesSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/ReleaseSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/RepoTypeSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/RepositoriesSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/ServiceOwnerSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/ServicePageSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmrc/cataloguefrontend/ServicesSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading