Commit f5626dba authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '225-custom-tag-for-repository-file' into 'master'

Custom tag for repository file

Closes #225

See merge request genesys-pgr/genesys-server!127
parents b4743f8f 6162ee2b
......@@ -62,10 +62,7 @@
<c:forEach var="file" items="${fileList}" varStatus="i">
<tr>
<td class="col-md-5 col-xs-7">
<a href="<c:url value="/repository/d${file.path}${file.uuid}${file.extension}" />">
<c:out value="${file.title}" />
<small><c:out value="${file.originalFilename}" /></small>
</a>
<local:repository-file-download repositoryFile="${file}" />
</td>
<td class="col-md-3 hidden-sm hidden-xs">
<c:out value="${file.path}" />
......
......@@ -57,8 +57,7 @@
<c:forEach var="file" items="${fileList}" varStatus="i">
<tr>
<td class="col-md-5 col-xs-7">
<c:out value="${file.title}" />
<small><c:out value="${file.originalFilename}" /></small>
<local:repository-file-download repositoryFile="${file}" />
</td>
<td class="col-md-3 hidden-sm hidden-xs">
<c:out value="${file.path}" />
......
<%@ tag description="Display the download link for repository file" pageEncoding="UTF-8" %>
<%@ tag body-content="empty" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="repositoryFile" required="true" description="Repository File" rtexprvalue="true" type="java.lang.Object" %>
<c:if test="${repositoryFile ne null}">
<a href="<c:url value='/repository/d${repositoryFile.storagePath}/${repositoryFile.uuid}${repositoryFile.extension}' />" title="Download file">
<c:out value="${repositoryFile.title}" />
<small><c:out value="${repositoryFile.originalFilename}" /></small>
</a>
</c:if>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment