Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
6162ee2b
Commit
6162ee2b
authored
Nov 27, 2017
by
Maxym Borodenko
Committed by
Matija Obreza
Nov 28, 2017
Browse files
Custom tag for repository file
parent
b4743f8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/jsp/admin/repository/index.jsp
View file @
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
}
"
/>
...
...
src/main/webapp/WEB-INF/jsp/wiews/files/index.jsp
View file @
6162ee2b
...
...
@@ -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
}
"
/>
...
...
src/main/webapp/WEB-INF/tags/repository-file-download.tag
0 → 100644
View file @
6162ee2b
<%@ 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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment