Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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...
commit a8bede5faa15d20b906300961b1366b4c4c1d29f 1 parent c86449c
@skinnynerd skinnynerd authored kblin committed
View
8 wombat/templates/derived/dir/filelist.html
@@ -13,13 +13,13 @@
type="text/itemDetail"
rel="${h.url_for(controller="file", action="panel")}?path=${file.path}"
class="clr">
- <div class="lfloat">
+ <span class="lfloat">
<img class="fade" src="/images/other.png"
height="32" width="32" vspace="1" hspace="1" border="0" alt="" />
- </div>
- <div class="lfloat">
+ </span>
+ <span class="lfloat">
${h.truncStr(file.name, 20)}<br />
- </div>
+ </span>
</a>
<script type="text/javascript">
lazyLoad('${h.url_for(controller="file", action="file_li2", id=None)}?path=${file.path}&id=${g}_${i}', $('act_${g}_${i}'));
View
8 wombat/templates/derived/file/file_li2.html
@@ -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>
View
53 wombat/templates/derived/file/tagged.html
@@ -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>
- &nbsp;
- <a
- href="${h.url_for(controller="file", action="index", id=None)}?path=${file.path}" title="File details: ${file.name}">
- ${file.name}
- </a>
- <div>&nbsp;</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: &ldquo;${file.name}&rdquo;"
+ 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>
View
53 wombat/templates/derived/show/searchresults.html
@@ -1,9 +1,9 @@
<%inherit file="/base/index.html"/>
<div class="clr group">
- <em>Found ${len(c.found_dirs)} directories and ${len(c.found_files)} files containing "${c.needle}".</em>
+ <em>Found ${len(c.found_dirs)} directories and ${len(c.found_files)} files containing "${c.needle}".</em>
%if c.found_dirs != []:
- <h3>Found Directories</h3>
+ <h3>Found Directories</h3>
<table border="0" class="group">
<tr>
<% i = 0 %>
@@ -27,34 +27,35 @@
</tr>
</table>
%endif
-
+ </div>
+ <div class="group">
%if c.found_files != []:
- <h3>Found Files</h3>
- <table border="0" class="group">
- <tr>
+ <h3>Found Files</h3>
+ <div class="clr set">
<% i = 0 %>
%for file in c.found_files:
- <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>
- &nbsp;
- <a href="${h.url_for(controller="file", action="index", id=None)}?path=${file.path}" title="File details: ${file.name}">
- ${file.name}
- </a>
- <div>&nbsp;</div>
- </td>
+ <div id="item_${i}" class="lfloat item">
+ <a href="${h.url_for(controller="file")}?path=${file.path}"
+ id="act_${i}"
+ title="View Details for: &ldquo;${file.name}&rdquo;"
+ 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%>
-%if i%2 == 0:
- </tr>
- <tr>
-%endif
%endfor
- </tr>
- </table>
+ </div>
%endif
-
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.