@@ -49,29 +49,29 @@ <h4 id="modalTitle">Dot File Source:</h4>
4949digraph G {
5050 graph [
5151 bgcolor="#eeeeee"
52- color="black"
53- fontsize="10"
54- labeljust="left"
55- clusterrank="local"
56- ranksep="0.22"
57- nodesep="0.05"
58- ];
52+ color="black"
53+ fontsize="10"
54+ labeljust="left"
55+ clusterrank="local"
56+ ranksep="0.22"
57+ nodesep="0.05"
58+ ];
5959 node [
60- fontname="Helvetica"
61- fontsize="10"
62- fontcolor="black"
63- shape="record"
64- height="0"
65- width="0"
66- color="black"
67- fillcolor="lightgoldenrodyellow"
68- style="filled"
60+ fontname="Helvetica"
61+ fontsize="10"
62+ fontcolor="black"
63+ shape="record"
64+ height="0"
65+ width="0"
66+ color="black"
67+ fillcolor="lightgoldenrodyellow"
68+ style="filled"
6969 ];
7070 edge [
71- fontname="Helvetica"
72- fontsize="8"
73- fontcolor="black"
74- color="black"
71+ fontname="Helvetica"
72+ fontsize="8"
73+ fontcolor="black"
74+ color="black"
7575 arrowsize="0.7"
7676 ];
7777 subgraph cluster_inputs {
@@ -199,43 +199,18 @@ <h2 style="float:left;">Requires: </h2>
199199 < img th:if ="${workflow.dockerLink == 'true'} " id ="dockerLogo " th:src ="@{/img/Docker-logo.png} " src ="../static/img/Docker-logo.png " alt ="docker logo " />
200200 </ div >
201201 < div th:if ="${workflow.licenseLink != null} " class ="alert alert-success " role ="alert ">
202- < span class ="hidden-xs "> This workflow is Open Source and may be reused according to the terms of:</ span >
203- < a href ="http://example.com/ " th:href ="@{${workflow.licenseLink}} " class ="alert-link ">
204- < span th:remove ="tag " th:switch ="${workflow.licenseLink} ">
205- <!-- TODO: Move license 'registry' to controller? -->
206- < span th:remove ="tag " th:case ="'https://www.apache.org/licenses/LICENSE-2.0' ">
207- Apache License, version 2.0
208- </ span >
209- < span th:remove ="tag " th:case ="'http://www.apache.org/licenses/LICENSE-2.0' ">
210- Apache License, version 2.0
211- </ span >
212- < span th:remove ="tag " th:case ="'https://spdx.org/licenses/Apache-2.0' ">
213- Apache License, version 2.0
214- </ span >
215- < span th:remove ="tag " th:case ="'https://mit-license.org/' ">
216- MIT License
217- </ span >
218- < span th:remove ="tag " th:case ="'https://spdx.org/licenses/AGPL-3.0' ">
219- GNU Affero General Public License v3.0
220- </ span >
221- < span th:remove ="tag " th:case ="'http://www.gnu.org/licenses/agpl.txt' ">
222- GNU Affero General Public License
223- </ span >
224- < span th:remove ="tag " th:case ="'http://www.opensource.org/licenses/AGPL-3.0' ">
225- GNU Affero General Public License v3.0
226- </ span >
227- < div th:remove ="tag " th:case ="* " th:text ="${workflow.licenseLink} ">
228- <!-- FIXME: This may not be an open source license! -->
229- http://example.com/LICENSE
230- </ div >
231- </ span >
232- </ a >
233- < div class ="hidden-xs "> < small > Note that the < em > tools</ em > invoked by the workflow may have separate licenses.</ small > </ div >
234- </ div >
235- < div th:unless ="${workflow.licenseLink} " class ="alert alert-warning " role ="alert ">
236- Unknown workflow license, check
237- < a th:href ="@{${workflow.retrievedFrom.getUrl()}} " href ="# " rel ="noopener " target ="_blank "> source repository</ a > .
238- </ div >
202+ < span class ="hidden-xs "> This workflow is Open Source and may be reused according to the terms of:</ span >
203+ < a href ="http://example.com/ " th:href ="@{${workflow.licenseLink}} " class ="alert-link ">
204+ < div th:remove ="tag " th:text ="${workflow.getLicenseName()} ">
205+ http://example.com/LICENSE
206+ </ div >
207+ </ a >
208+ < div class ="hidden-xs "> < small > Note that the < em > tools</ em > invoked by the workflow may have separate licenses.</ small > </ div >
209+ </ div >
210+ < div th:unless ="${workflow.licenseLink} " class ="alert alert-warning " role ="alert ">
211+ Unknown workflow license, check
212+ < a th:href ="@{${workflow.retrievedFrom.getUrl()}} " href ="# " rel ="noopener " target ="_blank "> source repository</ a > .
213+ </ div >
239214 < h2 > Inputs</ h2 >
240215 < div th:if ="${workflow.inputs.isEmpty()} " class ="alert alert-info ">
241216 < p > There are no inputs in this workflow</ p >
@@ -273,10 +248,10 @@ <h2>Steps</h2>
273248 < div class ="table-responsive ">
274249 < table class ="table table-striped table-hover steps ">
275250 < thead >
276- < th > ID</ th >
277- < th > Runs</ th >
278- < th > Label</ th >
279- < th > Doc</ th >
251+ < th > ID</ th >
252+ < th > Runs</ th >
253+ < th > Label</ th >
254+ < th > Doc</ th >
280255 </ thead >
281256 < tbody >
282257 < tr th:each ="step : ${workflow.steps} " th:with ="workflowURL=@{${workflow.retrievedFrom.getUrl()}} ">
@@ -332,16 +307,16 @@ <h2>Outputs</h2>
332307 </ div >
333308 </ div >
334309 < div class ="row hidden-print ">
335- < div class ="col-md-12 text-center " id ="formats ">
336- < span th:each ="format : ${formats} ">
310+ < div class ="col-md-12 text-center " id ="formats ">
311+ < span th:each ="format : ${formats} ">
337312 < a th:id ="|format-${format}| " role ="button " class ="btn btn-default btn-sm " th:href ="${workflow.getPermalink(format.name())} " th:text ="${format} "
338313 href ="# "> html</ a >
339314 </ span >
340315 </ div >
341316 </ div >
342317 < div class ="visible-print-block ">
343318 < address > Permalink:
344- < code th:text ="${workflow.permalink} "> https://w3id.org/cwl/view/git/933bf2a1a1cce32d88f88f136275535da9df0954/workflows/larger/test-hello.cwl</ code >
319+ < code th:text ="${workflow.permalink} "> https://w3id.org/cwl/view/git/933bf2a1a1cce32d88f88f136275535da9df0954/workflows/larger/test-hello.cwl</ code >
345320 </ address >
346321 </ div >
347322</ div >
0 commit comments