Skip to content

Commit 4ce34de

Browse files
authored
Separate workflow URL from repository URL in "retrieved from" column of workflows page (#316)
1 parent aaabd77 commit 4ce34de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/templates/workflows.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ <h3>Showing results for "<span th:text="${search}">query</span>" <a href="/workf
7171
<p><i th:text="${workflow.doc}">Description</i></p>
7272
</td>
7373
<td>
74-
<a th:href="@{${workflow.retrievedFrom.getUrl()}}" rel="noopener" target="_blank">
74+
<a th:href="@{${workflow.retrievedFrom.repoUrl}}" rel="noopener" target="_blank">
7575
<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" />
7676
<img th:unless="${workflow.retrievedFrom.getType().name() == 'GITHUB'}" id="gitLogo" src="../static/img/gitlogo.png" th:src="@{/img/gitlogo.png}" width="24" height="24" />
7777
<span th:text="@{${workflow.retrievedFrom.repoUrl}}">https://github.com/test/test2/repo.git</span>
7878
</a>
79-
<p th:if="${workflow.retrievedFrom.path != null}">Path: <i th:text="${workflow.retrievedFrom.path}">/path/to/workflow.cwl</i></p>
79+
<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>
8080
<p>Branch/Commit ID: <i th:text="${workflow.retrievedFrom.branch}">master</i></p>
8181
<p th:if="${workflow.retrievedFrom.packedId != null}">Packed ID: <i th:text="${workflow.retrievedFrom.packedId}">#main</i></p>
8282
</td>

0 commit comments

Comments
 (0)