webui:fix :state-filter,peers-order/width

This commit is contained in:
Martijn Voncken 2008-03-26 21:46:40 +00:00
parent 21efd6709d
commit a1a8534972
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ class index:
value = getattr(web.input(**{filter_name:None}), filter_name)
if value and value <> "All":
filter_dict[filter_name] = value
setcookie(filter_name, vars.state)
setcookie(filter_name, getattr(vars, filter_name))
else:
setcookie(filter_name, "")

View File

@ -42,10 +42,10 @@ menu.register_admin_page("about", _("About"), "/about")
menu.register_admin_page("logout", _("Logout"), "/logout")
menu.register_detail_tab("details", _("Details"), "tab_meta")
menu.register_detail_tab("files", _("Files"), "tab_files")
menu.register_detail_tab("options", _("Options"), "tab_options")
menu.register_detail_tab("trackers", _("Trackers"), "tab_trackers")
menu.register_detail_tab("peers", _("Peers"), "tab_peers")
menu.register_detail_tab("files", _("Files"), "tab_files")
menu.register_toolbar_item("add", _("Add"), "list-add.png" , TB.generic, "GET","/torrent/add/", True)
menu.register_toolbar_item("delete",_("Delete"), "list-remove.png" ,TB.torrent_list, "GET","/torrent/delete/" , True)

View File

@ -48,7 +48,7 @@ $for torrent in torrent_list:
</td>
<td>$torrent.queue</td>
<td style="width:100px; overflow:hidden;white-space: nowrap">
$(crop(torrent.name, 40))</td>
$(crop(torrent.name, 30))</td>
<td>$fsize(torrent.total_size)</td>
<td class="progress_bar">
<div class="progress_bar_outer">