~cmiller/ubuntu/quantal/deluge/fix-parameter-move-storage

« back to all changes in this revision

Viewing changes to deluge/ui/webui/templates/classic/part_label_filters.html

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-11-13 02:39:45 UTC
  • mfrom: (4.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091113023945-te1bybo2912ejzuc
Tags: 1.2.0~rc3-4
* debian/control: bump build-dep on python-setuptools to (>= 0.6c9).
* debian/patches:
  - 25_r5921_fastresume_files.patch
    new, should fix problems with fresh configs;
  - 30_r5931_ipc_lockfile.patch:
    new, should fix an issue where Deluge will fail to start if there is a
    stale ipc lockfile. (Closes: #555849)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
$def with (filter_items)
2
 
 
3
 
<div class="panel" style="text-align:left;">
4
 
$for cat in filter_items.keys():
5
 
    $if cat != "state":
6
 
        <br/>
7
 
    <span class="title">$id_to_label(cat):</span>
8
 
    $for value, count in filter_items[cat]:
9
 
        <li style="display:inline"
10
 
        $if cat == get('filter_cat'):
11
 
            $if value == get('filter_value'):
12
 
                class="selected"
13
 
        $# I hate this, special case for All
14
 
        $# templetor sucks with multiple conditions in 1 if-statement, i need to find a better way,
15
 
        $if cat == "state":
16
 
            $if value == "All":
17
 
                $if not get('filter_value'):
18
 
                    $if not get('filter_cat'):
19
 
                        class="selected"
20
 
        >
21
 
        <a href="$self_url(filter_cat=cat, filter_value=value, sort=get('sort'), order=get('order')) ">
22
 
        $if cat == "state":
23
 
            <img src="/pixmaps/$(value.lower())"></img>
24
 
        $if cat == "tracker_host":
25
 
            <img src="$base/tracker/icon/$value" width="16" height="16"></img>
26
 
        $if not value:
27
 
            $if cat == "label":
28
 
                $_("No Label") ($count)</a>
29
 
            $else:
30
 
                $_("None") ($count)</a>
31
 
        $else:
32
 
            $value ($count)</a>
33
 
        </li>
34
 
 
35
 
 
36
 
<!--keyword search-->
37
 
$if get_config("show_keyword_search"):
38
 
    <br> <span class="title">$_("Search"):</span>
39
 
    <form method="GET" id="category_form" style="display:inline" action="$base/index">
40
 
    <input type="hidden" name="sort" value="$get('sort')">
41
 
    <input type="hidden" name="order" value="$get('order')">
42
 
    <input type="hidden" name="filter_cat" value="keyword">
43
 
    <input type="text" name="filter_value" id="filter_value" title="test hover"
44
 
    $if get('filter_cat') == "keyword":
45
 
        value="$get('filter_value')"
46
 
    style="width:100px;padding:0px" title="$_('Filter on a keyword')"/>
47
 
    $if get('filter_cat') == "keyword":
48
 
        $if get('filter_value'):
49
 
            <!---
50
 
            <img src="$base/static/images/16/edit-clear.png" alt="$_('Clear')"
51
 
            onclick="el('keyword').value='';el('category_form').submit();"
52
 
            >
53
 
            --->
54
 
    </form>
55
 
 
56
 
</div>
57
 
 
58
 
 
59
 
 
60