-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of table-based view for tag groups and search results
The template files for file/tagged and show/searchresults have been overhauled to replace the table view with a view similar to dir view. Also fixed a bug where the existing display would not render correctly in the new version of Firefox.
- Loading branch information
1 parent
c86449c
commit a8bede5
Showing
4 changed files
with
62 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
<div class="lfloat"> | ||
<span class="lfloat"> | ||
<img class="fade" src="${h.getIcon(c.file)}" | ||
height="32" width="32" vspace="1" hspace="1" border="0" alt="" /> | ||
</div> | ||
<div class="lfloat"> | ||
</span> | ||
<span class="lfloat"> | ||
${h.truncStr(c.file.name, 20)}<br /> | ||
<span class="meta"> | ||
(${h.sizeToStr(c.file.size)}) | ||
</span> | ||
</div> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
<%inherit file="/base/index.html"/> | ||
<div id="main"> | ||
<h3>Found Files</h3> | ||
<div class="group"> | ||
<h3>Found ${len(c.tagged)} Files</h3> | ||
%if c.tagged is not None: | ||
<table border="0" class="group"> | ||
<tr> | ||
<% i = 0 %> | ||
<div class="clr set"> | ||
<% i = 0 %> | ||
%for file in c.tagged: | ||
<td class="cell" valign="top" width="50%" id="file_li_${i}"> | ||
<script type="text/javascript"> | ||
lazyLoad('${h.url_for(controller="file", action="file_li", id=None)}?path=${file.path}', $('file_li_${i}')); | ||
</script> | ||
<a | ||
href="${h.url_for(controller="file", action="index", id=None)}?path=${file.path}" title="Download ${file.name}"> | ||
<img class="fade" src="/images/other.png" border="0" alt="*" /> | ||
</a> | ||
| ||
<a | ||
href="${h.url_for(controller="file", action="index", id=None)}?path=${file.path}" title="File details: ${file.name}"> | ||
${file.name} | ||
</a> | ||
<div> </div> | ||
</td> | ||
<%i+=1%> | ||
%if i%2 == 0: | ||
</tr> | ||
<tr> | ||
%endif | ||
<div id="item_${i}" class="lfloat item"> | ||
<a href="${h.url_for(controller="file")}?path=${file.path}" | ||
id="act_${i}" | ||
title="View Details for: “${file.name}”" | ||
type="text/itemDetail" | ||
rel="${h.url_for(controller="file", action="panel")}?path=${file.path}" | ||
class="clr"> | ||
<span class="lfloat"> | ||
<img class="fade" src="/images/other.png" | ||
height="32" width="32" vspace="1" hspace="1" border="0" alt="" /> | ||
</span> | ||
<span class="lfloat"> | ||
${h.truncStr(file.name, 20)}<br /> | ||
</span> | ||
</a> | ||
<script type="text/javascript"> | ||
lazyLoad('${h.url_for(controller="file", action="file_li2", id=None)}?path=${file.path}&id=${i}', $('act_${i}')); | ||
</script> | ||
<div id="exp_item_${i}" class="exp"></div> | ||
</div> | ||
<% i += 1 %> | ||
%endfor | ||
</tr> | ||
</table> | ||
</div> | ||
%endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters