PageRenderTime 152ms CodeModel.GetById 120ms app.highlight 2ms RepoModel.GetById 28ms app.codeStats 1ms

/django/contrib/admin/templates/mako/admin/filter.html

https://code.google.com/p/mango-py/
HTML | 47 lines | 26 code | 21 blank | 0 comment | 0 complexity | 7bf44e9484b224446e8c90ff557d02a0 MD5 | raw file
 1<%def name="filter(title='untitled', output='', multi=False, multitag=False, displaymulti=False, choices=[])" >
 2
 3<% filter_title = escape(title) %>
 4
 5% if not output:
 6
 7<h3> By ${filter_title}
 8
 9% if displaymulti:
10
11
12% if multi:
13
14<span class="modifier">(<a class="selected" href="?${multitag}">single</a>|<b>multi</b>)</span>
15
16% else:
17
18<span class="modifier">(<b>single</b>|<a class="selected" href="?${multitag}">multi</a>)</span>
19
20% endif
21
22
23% endif
24
25</h3>
26<ul>
27
28% for num,choice in enumerate(choices):
29
30    <li
31% if choice['selected']:
32 class="selected"
33% endif
34 style="background: ${ '#efefef' if num%2 else '#e4e4e4' };">
35    <a href="${choice['query_string']}">${choice['display']}</a></li>
36
37% endfor
38
39</ul>
40
41% else:
42
43${output}
44
45% endif
46
47</%def>