Skip to content

Commit f8df290

Browse files
committed
responsive design, show/hide permalinks for small/print
1 parent 0194d3c commit f8df290

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

src/main/resources/templates/workflow.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ <h4 class="modal-title" id="fullScreenGraphLabel">Workflow Graph</h4>
121121
</div>
122122
</div>
123123

124-
<div class="container">
124+
<div class="container" role="main" id="main">
125125
<div class="row">
126-
<div class="col-md-12" role="main" id="main">
126+
<div class="col-md-12" >
127127
<h2>Workflow: <span th:text="${workflow.label}">Workflow Name</span></h2>
128128
</div>
129129
<div class="col-md-6">
@@ -132,7 +132,7 @@ <h2>Workflow: <span th:text="${workflow.label}">Workflow Name</span></h2>
132132
<img th:unless="${workflow.retrievedFrom.getType().name() == 'GITHUB'}" id="gitLogo" src="../static/img/gitlogo.png" th:src="@{/img/gitlogo.png}" width="30" height="30" />
133133
</a>
134134
<i>Fetched <span th:text="${{workflow.retrievedOn}}">01/12/16 at 21:00</span></i>
135-
<span class="hidden-print">
135+
<span class="hidden-print hidden-sm hidden-xs">
136136
<span th:if="${workflow.roBundlePath == null}" id="ajaxRequired"></span>
137137
<span th:class="${workflow.roBundlePath != null} ? hide : ''" id="generating"> - Generating download link <img alt="loading" src="../static/img/loading.svg" th:src="@{/img/loading.svg}" width="20" height="20" /></span>
138138
<span th:class="${workflow.roBundlePath == null} ? hide : ''" id="generated">
@@ -141,23 +141,25 @@ <h2>Workflow: <span th:text="${workflow.label}">Workflow Name</span></h2>
141141
</span>
142142
</span>
143143
</div>
144-
<div class="col-md-6 text-right">
144+
<div class="col-md-6 text-right hidden-xs">
145145
<img class="verification_icon" src="../static/img/tick.svg" th:src="@{/img/tick.svg}" width="20" height="22" /> Verified with cwltool version <span th:text="${workflow.cwltoolVersion}">1.0.20170622090721</span>
146146
</div>
147+
147148
<div class="col-md-12" style="margin-top:5px;" th:if="${workflow.doc != null}">
148149
<p th:text="${workflow.doc}">Workflow Doc</p>
149150
</div>
150151
</div>
151152
<div class="row">
152153
<div class="col-lg-9 col-md-8 col-sm-6">
153-
<div class="permalink hidden-xs-down" th:unless="${workflow.packed}">
154+
<div class="permalink hidden-sm hidden-xs hidden-print" th:unless="${workflow.packed}">
154155
Permalink:
155156
<a href="https://w3id.org/cwl/view/" rel="noopener" class="help" target="_blank">[?]</a>
156-
<a id="permalink" th:href="${workflow.permalink}" th:text="${workflow.permalink}"
157-
href="#">https://w3id.org/cwl/view/git/933bf2a1a1cce32d88f88f136275535da9df0954/workflows/larger/test-hello.cwl</a>
157+
<code><a id="permalink" th:href="${workflow.permalink}" th:text="${workflow.permalink}"
158+
href="#">https://w3id.org/cwl/view/git/933bf2a1a1cce32d88f88f136275535da9df0954/workflows/larger/test-hello.cwl</a></code>
158159
</div>
160+
159161
</div>
160-
<div class="col-lg-3 col-md-4 col-sm-6">
162+
<div class="col-lg-3 col-md-4 col-sm-6 hidden-xs">
161163
<div id="graph-menu hidden-print" class="pull-right">
162164
<button id="view-dot" class="hidden-print hidden-sm-down btn btn-primary" type="button" data-toggle="modal" data-target="#dotGraph">View DOT</button>
163165
<div class="btn-group hidden-print">
@@ -299,6 +301,11 @@ <h2>Outputs</h2>
299301
</span>
300302
</div>
301303
</div>
304+
<div class="visible-print-block" th:unless="${workflow.packed}">
305+
<address>Permalink:
306+
<code th:text="${workflow.permalink}">https://w3id.org/cwl/view/git/933bf2a1a1cce32d88f88f136275535da9df0954/workflows/larger/test-hello.cwl</code>
307+
</address>
308+
</div>
302309
</div>
303310

304311
<div th:replace="fragments/footer :: copy"></div>

0 commit comments

Comments
 (0)