Changeset 4865
- Timestamp:
- Mar 31, 2009, 9:31:04 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/Base.java
r4728 r4865 1599 1599 String downloadIcon = "download"; 1600 1600 String separator = " | "; 1601 String bytes = Values.formatBytes(file.getSize(), 1); 1601 1602 if (root != null) 1602 1603 { … … 1606 1607 } 1607 1608 link += " [<a href=\"javascript:Main.viewFile('" + ID + "', " + file.getId() + ")\"" + 1608 " title=\"View the contents of this file \">" + viewIcon + "</a>" +1609 " title=\"View the contents of this file (" + bytes + ")\">" + viewIcon + "</a>" + 1609 1610 separator + 1610 1611 "<a href=\"javascript:Main.downloadFile('" + ID + "', " + file.getId() + ")\"" + "" + 1611 " title=\"Download the contents of this file \">" + downloadIcon + "</a>]";1612 " title=\"Download the contents of this file (" + bytes + ")\">" + downloadIcon + "</a>]"; 1612 1613 } 1613 1614 return link; -
trunk/www/filemanager/files/list_files.jsp
r4669 r4865 787 787 String tagPath = HTML.encodeTags(path); 788 788 String icon = item.isCompressed() ? "file_compressed.gif" : "file.gif"; 789 String fileSize = Values.formatBytes(item.getSize(), numDecimals); 789 790 index++; 790 791 numListed++; … … 835 836 onclick="fileOnClick(<%=writePermission ? "event" : null%>, <%=itemId%>)" 836 837 title="<%=tooltip%>"><%=name%></div></tbl:cell> 837 <tbl:cell column="size">< %=Values.formatBytes(item.getSize(), numDecimals)%></tbl:cell>838 <tbl:cell column="compressedSize">< %=Values.formatBytes(item.getCompressedSize(), numDecimals)%></tbl:cell>838 <tbl:cell column="size"><span title="<%=item.getSize()%> bytes"><%=fileSize%></span></tbl:cell> 839 <tbl:cell column="compressedSize"><span title="<%=item.getCompressedSize()%> bytes"><%=Values.formatBytes(item.getCompressedSize(), numDecimals)%></span></tbl:cell> 839 840 <tbl:cell column="compressed"><%=item.isCompressed() ? "yes" : "no"%></tbl:cell> 840 841 <tbl:cell column="writeProtected"><%=item.isWriteProtected() ? "yes" : "no"%></tbl:cell> … … 865 866 { 866 867 %> 867 <a href="javascript:Main.viewFile('<%=ID%>', <%=itemId%>)"><base:icon image="view.gif" tooltip=" View the contents of this file" /></a>868 <a href="javascript:Main.downloadFile('<%=ID%>', <%=itemId%>)"><base:icon image="download.gif" tooltip=" Download the contents of this file" /></a>868 <a href="javascript:Main.viewFile('<%=ID%>', <%=itemId%>)"><base:icon image="view.gif" tooltip="<%="View the contents of this file (" + fileSize + ")"%>" /></a> 869 <a href="javascript:Main.downloadFile('<%=ID%>', <%=itemId%>)"><base:icon image="download.gif" tooltip="<%="Download the contents of this file (" + fileSize + ")"%>" /></a> 869 870 <% 870 871 } -
trunk/www/filemanager/files/view_file.jsp
r4587 r4865 76 76 String path = file.getPath().toString(); 77 77 String urlPath = HTML.urlEncode(path); 78 String bytes = Values.formatBytes(file.getSize(), 2); 78 79 79 80 final boolean writePermission = file.hasPermission(Permission.WRITE); … … 302 303 { 303 304 %> 304 [<a href="javascript:Main.viewFile('<%=ID%>', <%=itemId%>)"><base:icon image="view.gif" tooltip=" View the contents of this file" /></a>305 <a href="javascript:Main.downloadFile('<%=ID%>', <%=itemId%>)"><base:icon image="download.gif" tooltip=" Download the contents of this file" /></a>305 [<a href="javascript:Main.viewFile('<%=ID%>', <%=itemId%>)"><base:icon image="view.gif" tooltip="<%="View the contents of this file (" + bytes + ")"%>" /></a> 306 <a href="javascript:Main.downloadFile('<%=ID%>', <%=itemId%>)"><base:icon image="download.gif" tooltip="<%="Download the contents of this file (" + bytes + ")"%>" /></a> 306 307 <% 307 308 if (file.hasPermission(Permission.WRITE) && !file.isWriteProtected()) … … 363 364 <tr> 364 365 <td class="prompt">Size</td> 365 <td ><%=Values.formatBytes(file.getSize())%></td>366 <td title="<%=file.getSize()%> bytes"><%=bytes%></td> 366 367 </tr> 367 368 <% … … 371 372 <tr> 372 373 <td class="prompt">Compressed Size</td> 373 <td ><%=Values.formatBytes(file.getCompressedSize())%></td>374 <td title="<%=file.getCompressedSize()%> bytes"><%=Values.formatBytes(file.getCompressedSize())%></td> 374 375 </tr> 375 376 <%
Note: See TracChangeset
for help on using the changeset viewer.