Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
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
Options
Browse Files
Download
Email Patches
Plain Diff
Custom tag for repository file
parent
b4743f8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
src/main/webapp/WEB-INF/jsp/admin/repository/index.jsp
src/main/webapp/WEB-INF/jsp/admin/repository/index.jsp
+1
-4
src/main/webapp/WEB-INF/jsp/wiews/files/index.jsp
src/main/webapp/WEB-INF/jsp/wiews/files/index.jsp
+1
-2
src/main/webapp/WEB-INF/tags/repository-file-download.tag
src/main/webapp/WEB-INF/tags/repository-file-download.tag
+11
-0
No files found.
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
Markdown
is supported
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