Skip to content
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## 1.2.11 - 2025-4-10
- Remove Jira issue ID strikethrough on SLC documents. ([#153](https://github.com/opendevstack/ods-document-generation-templates/pull/153))
- Make content in column Test Case No. wrappable. ([#152](https://github.com/opendevstack/ods-document-generation-templates/pull/152))
- TIR changes: Wording changes to be more inclusive of helm deployments, removed dynamic values from report tables and change in table formatting ([#146](https://github.com/opendevstack/ods-document-generation-templates/pull/146)) & ([#154](https://github.com/opendevstack/ods-document-generation-templates/pull/154))

## 1.2.10 - 2025-1-27
- Remove "Initials/Date" from TCP and TCR documents. ([#150](https://github.com/opendevstack/ods-document-generation-templates/pull/150))
- Update TRC reference document with SSDS and TCP ([#149](https://github.com/opendevstack/ods-document-generation-templates/pull/149))
Expand Down
24 changes: 24 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ h5 span {
margin-right: 1.5em;
}

del {
text-decoration: none;
}

input + label {
margin-left: 0.5em;
Expand Down Expand Up @@ -168,6 +171,27 @@ td.content-wrappable table th, td.content-wrappable table td {
white-space: normal;
}

/* Remove all spacing around .inner-ul-2 elements */

td > ul.inner-ul {
list-style-type: none;
padding: 0em;
margin: 0em;
}

li > ul.inner-ul {
list-style-type: none;
padding-left: 1em;
padding-right: 0em;
padding-top: 0em;
padding-bottom: 0em;
}

.inner-span {
display: inline-block;
margin-right: 0em;
}

.center {
text-align: center;
}
Expand Down
48 changes: 33 additions & 15 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,39 @@
function subst() {
var vars = {};
var vars = {};

var query_strings_from_url = document.location.search.substring(1).split('&');
for (var query_string in query_strings_from_url) {
if (query_strings_from_url.hasOwnProperty(query_string)) {
var temp_var = query_strings_from_url[query_string].split('=', 2);
vars[temp_var[0]] = decodeURI(temp_var[1]);
var query_strings_from_url = document.location.search
.substring(1)
.split("&");
for (var query_string in query_strings_from_url) {
if (query_strings_from_url.hasOwnProperty(query_string)) {
var temp_var = query_strings_from_url[query_string].split("=", 2);
vars[temp_var[0]] = decodeURI(temp_var[1]);
}
}
}

var css_selector_classes = ['page', 'frompage', 'topage', 'webpage', 'section', 'subsection', 'date', 'isodate', 'time', 'title', 'doctitle', 'sitepage', 'sitepages'];
for (var css_class in css_selector_classes) {
if (css_selector_classes.hasOwnProperty(css_class)) {
var element = document.getElementsByClassName(css_selector_classes[css_class]);
for (var j = 0; j < element.length; ++j) {
element[j].textContent = vars[css_selector_classes[css_class]];
}
var css_selector_classes = [
"page",
"frompage",
"topage",
"webpage",
"section",
"subsection",
"date",
"isodate",
"time",
"title",
"doctitle",
"sitepage",
"sitepages",
];
for (var css_class in css_selector_classes) {
if (css_selector_classes.hasOwnProperty(css_class)) {
var element = document.getElementsByClassName(
css_selector_classes[css_class]
);
for (var j = 0; j < element.length; ++j) {
element[j].textContent = vars[css_selector_classes[css_class]];
}
}
}
}
}
8 changes: 4 additions & 4 deletions templates/DIL.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<table>
<thead>
<th style="white-space: nowrap">Discrepancy ID</th>
<th style="white-space: nowrap">Test Case No.</th>
<th class="content-wrappable">Test Case No.</th>
<th class="content-wrappable">Level of Test Case</th>
<th class="content-wrappable">Description of Failure or Discrepancy</th>
<th class="content-wrappable">Remediation Action</th>
Expand All @@ -94,7 +94,7 @@
{{#each data.integrationTests}}
<tr>
<td style="white-space: nowrap">{{discrepancyID}}</td>
<td style="white-space: nowrap">{{testcaseID}}</td>
<td class="content-wrappable">{{testcaseID}}</td>
<td class="content-wrappable">Integration</td>
<td class="hyphenate">{{{description}}}</td>
<td class="content-wrappable">{{{remediation}}}</td>
Expand Down Expand Up @@ -122,7 +122,7 @@
<table>
<thead>
<th style="white-space: nowrap">Discrepancy ID</th>
<th style="white-space: nowrap">Test Case No.</th>
<th class="content-wrappable">Test Case No.</th>
<th class="content-wrappable">Level of Test Case</th>
<th class="content-wrappable">Description of Failure or Discrepancy</th>
<th class="content-wrappable">Remediation Action</th>
Expand All @@ -134,7 +134,7 @@
{{#each data.acceptanceTests}}
<tr>
<td style="white-space: nowrap">{{discrepancyID}}</td>
<td style="white-space: nowrap">{{testcaseID}}</td>
<td class="content-wrappable">{{testcaseID}}</td>
<td class="content-wrappable">Acceptance</td>
<td class="hyphenate">{{{description}}}</td>
<td class="content-wrappable">{{{remediation}}}</td>
Expand Down
Loading