Rev 1312 | Rev 1814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1312 | Rev 1627 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | <div class="panel panel-default"> |
40 | <div class="panel panel-default"> |
41 | <div class="panel-body" id="contentVersions"> |
41 | <div class="panel-body" id="contentVersions"> |
42 | <table class="tablesorterfiltered" border="1" style="border:1px solid black"> |
42 | <table class="tablesorterfiltered" border="1" style="border:1px solid black"> |
43 | <thead> |
43 | <thead> |
44 | <tr> |
44 | <tr> |
- | 45 | <th>versão</th> |
|
45 | <th>Nome do Ficheiro</th> |
46 | <th>Nome do Ficheiro</th> |
46 | <th>Content Type</th> |
47 | <th>Content Type</th> |
47 | <th>Descrição</th> |
48 | <th>Descrição</th> |
48 | <th>Tamanho Kb</th> |
49 | <th>Tamanho Kb</th> |
49 | <th>Data</th> |
50 | <th>Data</th> |
Line 70... | Line 71... | ||
70 | { |
71 | { |
71 | public int compare(RepositoryFileVersion o1, RepositoryFileVersion o2) { |
72 | public int compare(RepositoryFileVersion o1, RepositoryFileVersion o2) { |
72 | return (int) (o2.getId() - o1.getId()); |
73 | return (int) (o2.getId() - o1.getId()); |
73 | } |
74 | } |
74 | }); |
75 | }); |
- | 76 | int numeroVersao = lista.size(); |
|
75 | for(pt.estgp.estgweb.domain.RepositoryFileVersion version: lista) |
77 | for(pt.estgp.estgweb.domain.RepositoryFileVersion version: lista) |
76 | { |
78 | { |
- | 79 | ||
77 | request.setAttribute("version",version); |
80 | request.setAttribute("version",version); |
78 | 81 | ||
79 | %> |
82 | %> |
80 | <tr> |
83 | <tr> |
- | 84 | <td><%=numeroVersao%></td> |
|
81 | <td><a href="<%=request.getContextPath()%>/repositoryStreamVersion/<%=version.getId()%>"><%=version.getName()%></a></td> |
85 | <td><a href="<%=request.getContextPath()%>/repositoryStreamVersion/<%=version.getId()%>"><%=version.getName()%></a></td> |
82 | <td><%=version.getContentType()%></td> |
86 | <td><%=version.getContentType()%></td> |
83 | <td><%=version.getDescription()%></td> |
87 | <td><%=version.getDescription()%></td> |
84 | <td><%=(version.getSize()/1024)%></td> |
88 | <td><%=(version.getSize()/1024)%></td> |
85 | <td style="white-space: nowrap">${version.saveDateFormated}</td> |
89 | <td style="white-space: nowrap">${version.saveDateFormated}</td> |
86 | 90 | ||
87 | </tr> |
91 | </tr> |
88 | <% |
92 | <% |
89 | - | ||
- | 93 | numeroVersao--; |
|
90 | } |
94 | } |
91 | } |
95 | } |
92 | jomm.dao.utils.HibernateUtils.getCurrentSession().getTransaction().commit(); |
96 | jomm.dao.utils.HibernateUtils.getCurrentSession().getTransaction().commit(); |
93 | } |
97 | } |
94 | %> |
98 | %> |