Skip to content

Commit 14881db

Browse files
author
Mark Robinson
committed
Green table hover
1 parent 17ded37 commit 14881db

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/main/java/org/commonwl/viewer/domain/CWLCollection.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ private Map<String, CWLStep> getSteps(JsonNode cwlDoc) {
236236
*/
237237
private Map<String, CWLElement> getInputs(JsonNode cwlDoc) {
238238
if (cwlDoc != null) {
239-
Map<String, CWLElement> inputsOutputs = null;
240239
if (cwlDoc.has(INPUTS)) {
241240
// For workflow/draft steps
242241
return getInputsOutputs(cwlDoc.get(INPUTS));
@@ -281,9 +280,9 @@ private Map<String, CWLElement> getStepInputsOutputs(JsonNode inOut) {
281280
Iterator<Map.Entry<String, JsonNode>> iterator = inOut.fields();
282281
while (iterator.hasNext()) {
283282
Map.Entry<String, JsonNode> inOutNode = iterator.next();
284-
CWLElement input = new CWLElement();
285-
input.addSourceID(stepIDFromSource(inOutNode.getValue().asText()));
286-
returnMap.put(inOutNode.getKey(), input);
283+
CWLElement inputOutput = new CWLElement();
284+
inputOutput.addSourceID(stepIDFromSource(inOutNode.getValue().asText()));
285+
returnMap.put(inOutNode.getKey(), inputOutput);
287286
}
288287
}
289288

src/main/resources/static/css/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ body {
2121
padding-top: 61px;
2222
}
2323

24+
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
25+
background-color: rgba(0, 255, 0, 0.11);
26+
}
27+
2428
.hide {
2529
display: none;
2630
}

src/main/resources/templates/workflow.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ <h2>Workflow: <span th:text="${workflow.label}">Workflow Name</span></h2>
135135
<div id="graph"></div>
136136
</div>
137137
<h2>Inputs</h2>
138-
<table class="table table-striped">
138+
<table class="table table-striped table-hover">
139139
<thead>
140140
<th>ID</th>
141141
<th>Type</th>
@@ -152,7 +152,7 @@ <h2>Inputs</h2>
152152
</tbody>
153153
</table>
154154
<h2>Outputs</h2>
155-
<table class="table table-striped">
155+
<table class="table table-striped table-hover">
156156
<thead>
157157
<th>ID</th>
158158
<th>Type</th>
@@ -169,7 +169,7 @@ <h2>Outputs</h2>
169169
</tbody>
170170
</table>
171171
<h2>Steps</h2>
172-
<table class="table table-striped">
172+
<table class="table table-striped table-hover">
173173
<thead>
174174
<th>ID</th>
175175
<th>Label</th>

0 commit comments

Comments
 (0)