Skip to content

Commit

Permalink
Separate workflow URL from repository URL in "retrieved from" column …
Browse files Browse the repository at this point in the history
…of workflows page (#316)
  • Loading branch information
obasekiosa authored Apr 15, 2021
1 parent aaabd77 commit 4ce34de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/workflows.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ <h3>Showing results for "<span th:text="${search}">query</span>" <a href="/workf
<p><i th:text="${workflow.doc}">Description</i></p>
</td>
<td>
<a th:href="@{${workflow.retrievedFrom.getUrl()}}" rel="noopener" target="_blank">
<a th:href="@{${workflow.retrievedFrom.repoUrl}}" rel="noopener" target="_blank">
<img th:if="${workflow.retrievedFrom.getType().name() == 'GITHUB'}" id="gitLogo" src="../static/img/GitHub-Mark-32px.png" th:src="@{/img/GitHub-Mark-32px.png}" width="20" height="20" />
<img th:unless="${workflow.retrievedFrom.getType().name() == 'GITHUB'}" id="gitLogo" src="../static/img/gitlogo.png" th:src="@{/img/gitlogo.png}" width="24" height="24" />
<span th:text="@{${workflow.retrievedFrom.repoUrl}}">https:/test/test2/repo.git</span>
</a>
<p th:if="${workflow.retrievedFrom.path != null}">Path: <i th:text="${workflow.retrievedFrom.path}">/path/to/workflow.cwl</i></p>
<p th:if="${workflow.retrievedFrom.path != null}">Path: <a th:href="@{${workflow.retrievedFrom.getUrl()}}" rel="noopener" target="_blank"><i th:text="${workflow.retrievedFrom.path}">/path/to/workflow.cwl</i></a></p>
<p>Branch/Commit ID: <i th:text="${workflow.retrievedFrom.branch}">master</i></p>
<p th:if="${workflow.retrievedFrom.packedId != null}">Packed ID: <i th:text="${workflow.retrievedFrom.packedId}">#main</i></p>
</td>
Expand Down

0 comments on commit 4ce34de

Please sign in to comment.