Rev 1714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1714 | Rev 1764 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | <%@attribute name="badge" type="java.lang.Boolean" required="false" %> |
10 | <%@attribute name="badge" type="java.lang.Boolean" required="false" %> |
11 | <%@attribute name="label" type="java.lang.String" required="false" %> |
11 | <%@attribute name="label" type="java.lang.String" required="false" %> |
12 | <%@attribute name="iconClasses" type="java.lang.String" required="false" %> |
12 | <%@attribute name="iconClasses" type="java.lang.String" required="false" %> |
13 | <%@attribute name="downloadIcon" type="java.lang.Boolean" required="false" %> |
13 | <%@attribute name="downloadIcon" type="java.lang.Boolean" required="false" %> |
14 | <%@attribute name="showHistory" type="java.lang.Boolean" required="false" %> |
14 | <%@attribute name="showHistory" type="java.lang.Boolean" required="false" %> |
- | 15 | <%@attribute name="target" type="java.lang.String" required="false" %> |
|
15 | <%@attribute name="btnXs" type="java.lang.Boolean" required="false" %> |
16 | <%@attribute name="btnXs" type="java.lang.Boolean" required="false" %> |
16 | <%@attribute name="iconLeft" type="java.lang.Boolean" required="false" %> |
17 | <%@attribute name="iconLeft" type="java.lang.Boolean" required="false" %> |
17 | 18 | ||
18 | <% |
19 | <% |
19 | 20 | ||
- | 21 | String targetStr = target == null ? "" : " target=\"" + target + "\" "; |
|
20 | boolean history = showHistory == null ? true: showHistory; |
22 | boolean history = showHistory == null ? true: showHistory; |
21 | boolean iconLeftPos = iconLeft == null ? false: true; |
23 | boolean iconLeftPos = iconLeft == null ? false: true; |
22 | String btnXsClass = btnXs != null && btnXs == true ? " btn-xs " : ""; |
24 | String btnXsClass = btnXs != null && btnXs == true ? " btn-xs " : ""; |
23 | request.setAttribute("btnXsClass",btnXsClass); |
25 | request.setAttribute("btnXsClass",btnXsClass); |
24 | if(staticTag != null && staticTag) |
26 | if(staticTag != null && staticTag) |
Line 31... | Line 33... | ||
31 | %> |
33 | %> |
32 | <label>${label}</label> |
34 | <label>${label}</label> |
33 | <% |
35 | <% |
34 | } |
36 | } |
35 | %> |
37 | %> |
36 | <a data-toggle="tooltip" title="Descarregar" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="glyphicon glyphicon-download-alt"></span></a> |
38 | <a data-toggle="tooltip" title="Descarregar" <%=targetStr%> class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="glyphicon glyphicon-download-alt"></span></a> |
37 | <% |
39 | <% |
38 | if(history){%> |
40 | if(history){%> |
39 | <a data-toggle="tooltip" title="Histórico" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" target="_blank" href="<%=request.getContextPath()%>/user/data.jsp?id=${repositoryStream}"><span class="icon icon-history icon-large"></span></a> |
41 | <a data-toggle="tooltip" title="Histórico" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" target="_blank" href="<%=request.getContextPath()%>/user/data.jsp?id=${repositoryStream}"><span class="icon icon-history icon-large"></span></a> |
40 | <%}%> |
42 | <%}%> |
41 | </div> |
43 | </div> |
Line 86... | Line 88... | ||
86 | <% |
88 | <% |
87 | } |
89 | } |
88 | %> |
90 | %> |
89 | 91 | ||
90 | <span class="badge icon <%=iconClasses!= null?iconClasses:""%>"> |
92 | <span class="badge icon <%=iconClasses!= null?iconClasses:""%>"> |
91 | <a data-toggle="tooltip" title="Descarregar" href="javascript:invoqueDataVersionForm(${repositoryStream})"><span class="icon icon-history icon-large"></span></a> |
93 | <a data-toggle="tooltip" <%=targetStr%> title="Descarregar" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="<%=iconFile%>"></span></a> |
92 | </span> |
94 | </span> |
93 | <%if(history){%> |
95 | <%if(history){%> |
94 | <span class="badge icon <%=iconClasses!= null?iconClasses:""%>"> |
96 | <span class="badge icon <%=iconClasses!= null?iconClasses:""%>"> |
95 | <a data-toggle="tooltip" title="Histórico" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="<%=iconFile%>"></span></a> |
97 | <a data-toggle="tooltip" title="Histórico" href="javascript:invoqueDataVersionForm(${repositoryStream})"><span class="icon icon-history icon-large"></span></a> |
96 | </span> |
98 | </span> |
- | 99 | ||
97 | <%}%> |
100 | <%}%> |
98 | <% |
101 | <% |
99 | } |
102 | } |
100 | else |
103 | else |
101 | { |
104 | { |
Line 119... | Line 122... | ||
119 | %> |
122 | %> |
120 | <label>${label}</label> |
123 | <label>${label}</label> |
121 | <% |
124 | <% |
122 | } |
125 | } |
123 | %> |
126 | %> |
124 | <a data-toggle="tooltip" title="Descarregar" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="<%=iconFile%>"></span></a> |
127 | <a data-toggle="tooltip" title="Descarregar" <%=targetStr%> class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="<%=request.getContextPath()%>/repositoryStream/${repositoryStream}"><span class="<%=iconFile%>"></span></a> |
125 | <%if(history){%> |
128 | <%if(history){%> |
126 | <a data-toggle="tooltip" title="Histórico" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="javascript:invoqueDataVersionForm(${repositoryStream})"><span class="icon icon-history icon-large"></span></a> |
129 | <a data-toggle="tooltip" title="Histórico" class="btn ${btnXsClass} btn-default <%=iconClasses!= null?iconClasses:""%>" href="javascript:invoqueDataVersionForm(${repositoryStream})"><span class="icon icon-history icon-large"></span></a> |
127 | <%}%> |
130 | <%}%> |
128 | </div> |
131 | </div> |
129 | <% |
132 | <% |