Skip to content

Commit 0c9c153

Browse files
committed
Display activity input/output in right-hand panel
Refs pombase/pombase-gocam#94
1 parent 6cac57c commit 0c9c153

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

‎gocam_view/templates/gocam_view/index.html‎

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@
146146
padding-bottom: 0.2em;
147147
font-size: 105%;
148148
}
149-
.models {
150-
padding-top: 0.2em;
149+
.models, .inputs-outputs {
150+
padding-top: 0.1em;
151151
}
152-
.model-list {
153-
padding: 0.1em 0 0.1em 1.3em;
152+
.model-list, .input-output-list {
153+
padding: 0.1em 0 0 1.3em;
154154
margin: 0.1em;
155155
}
156-
.model-id {
156+
.model-id, .input-output {
157157
padding: 0;
158158
font-size: 95%;
159159
}
@@ -880,6 +880,26 @@
880880
newContent += '</div>';
881881
}
882882

883+
if (currentData.has_input && currentData.has_input.length > 0) {
884+
newContent += '<div class="inputs-outputs">has input:</div><ul class="input-output-list">';
885+
for (const hasInput of currentData.has_input) {
886+
const label = hasInput.label;
887+
const id = hasInput.id;
888+
newContent += '<li class="input-output">' + makeLink(id, label) + '</li>';
889+
}
890+
newContent += '</ul></div>';
891+
}
892+
893+
if (currentData.has_output && currentData.has_output.length > 0) {
894+
newContent += '<div class="inputs-outputs">has output:</div><ul class="input-output-list">';
895+
for (const hasOutput of currentData.has_output) {
896+
const label = hasOutput.label;
897+
const id = hasOutput.id;
898+
newContent += '<li class="input-output">' + makeLink(id, label) + '</li>';
899+
}
900+
newContent += '</ul></div>';
901+
}
902+
883903
if (currentData.happens_during) {
884904
const label = currentData.happens_during.label;
885905
const id = currentData.happens_during.id;

0 commit comments

Comments
 (0)