From 3bfb5c449f6b9331673df206af0af1bf307896a7 Mon Sep 17 00:00:00 2001 From: RONALD FORTIN 0308329 Date: Thu, 5 Apr 2018 13:38:21 -0400 Subject: [PATCH] Add ability to collapse the Folder Owners box on folder and node pages. --- .../OwnershipPlugin/floatingBoxTemplate.jelly | 95 ++++++++++--------- src/main/webapp/css/ownership.css | 35 ++++++- 2 files changed, 81 insertions(+), 49 deletions(-) diff --git a/src/main/resources/com/synopsys/arc/jenkins/plugins/ownership/OwnershipPlugin/floatingBoxTemplate.jelly b/src/main/resources/com/synopsys/arc/jenkins/plugins/ownership/OwnershipPlugin/floatingBoxTemplate.jelly index 8d901ed..89174ae 100644 --- a/src/main/resources/com/synopsys/arc/jenkins/plugins/ownership/OwnershipPlugin/floatingBoxTemplate.jelly +++ b/src/main/resources/com/synopsys/arc/jenkins/plugins/ownership/OwnershipPlugin/floatingBoxTemplate.jelly @@ -43,59 +43,62 @@
-
${itemType} ${%Owners}
- - - - - - - - - + + +
+
-
${%Primary}
-
- -
- + - -
-
${%Secondary}
-
- - - +
${%Primary}
+
+
- -
diff --git a/src/main/webapp/css/ownership.css b/src/main/webapp/css/ownership.css index 93f0b9a..2b6bd11 100644 --- a/src/main/webapp/css/ownership.css +++ b/src/main/webapp/css/ownership.css @@ -1,5 +1,5 @@ .ownership-summary-box { - width: 400px; + width: 75%; background-color: #F0F0F0; border-color: #BBBBBB; border-style: double; @@ -21,10 +21,39 @@ } .ownership-text { - } .ownership-contact-links { margin-left: 5px; border-spacing: 5px; -} \ No newline at end of file +} + +.ownership-toggle-box { + display: none; +} + +.ownership-toggle-box + label { + text-align: center; + font-weight: bold; +} + +.ownership-toggle-box + label:before { + color: #000000; + content: "\25BA"; + display: block; + float: left; + text-align: center; + margin-right: 10px; +} + +.ownership-toggle-box:checked + label:before { + content: "\25BC"; +} + +.ownership-toggle-box + label + div { + display: none; +} + +.ownership-toggle-box:checked + label + div { + display: block; +}