Switch to unified view

a/views/search.tpl b/views/search.tpl
...
...
13
    </td>
13
    </td>
14
    <td width="30%">
14
    <td width="30%">
15
        <b>Folder</b><br>
15
        <b>Folder</b><br>
16
        <select id="folders" name="dir">
16
        <select id="folders" name="dir">
17
        %for d in sorted(dirs, key=str.lower):
17
        %for d in sorted(dirs, key=str.lower):
18
            %style = "margin-left: %dem" % (2*d.count('/'))
18
            %space = "&nbsp;" * (4 * d.count('/'))
19
            %if d in query['dir']:
19
            %if d in query['dir']:
20
                <option style="{{style}}" selected value="{{d}}">{{re.sub('.+/','', d)}}</option>
20
            %selected = "selected"
21
            %else:
21
            %else:
22
                <option style="{{style}}" value="{{d}}">{{re.sub('.+/','', d)}}</option>
22
            %selected = ""
23
            %end
23
            %end
24
            <option {{selected}} value="{{d}}">{{!space}}{{re.sub('.+/','', d)}}</option>
24
        %end
25
        %end
25
        </select><br>
26
        </select><br>
26
        <b>Dates</b> <small class="gray">YYYY[-MM][-DD]</small><br>
27
        <b>Dates</b> <small class="gray">YYYY[-MM][-DD]</small><br>
27
        <input name="after" value="{{query['after']}}" autocomplete="off"> &mdash; <input name="before" value="{{query['before']}}" autocomplete="off">
28
        <input name="after" value="{{query['after']}}" autocomplete="off"> &mdash; <input name="before" value="{{query['before']}}" autocomplete="off">
28
    </td>
29
    </td>