Switch to unified view

a/views/settings.tpl b/views/settings.tpl
1
%include header title=" / settings"
1
%include header title=" / settings"
2
<div id="settings-box">
2
<div id="settings-box">
3
<form action="set" method="get">
3
<form action="set" method="get">
4
    <b>Find similar</b> <small class="gray">(1 or 0, show "squats" and "squatter")</small>
4
    <b>Find similar</b> <small class="gray">(1 or 0, show "squats" and "squatter")</small>
5
    <input name="stem" value={{stem}}><br><br>
5
    <input name="stem" value={{stem}}>
6
    <hr>
6
    <hr>
7
    <b>Context words</b> <small class="gray">(number of words shown in search results)</small>
7
    <b>Context words</b> <small class="gray">(number of words shown in search results)</small>
8
    <input name="context" value={{context}}><br><br>
8
    <input name="context" value={{context}}>
9
    <b>Context characters</b> <small class="gray">(max characters in a snippet)</small>
9
    <b>Context characters</b> <small class="gray">(max characters in a snippet)</small>
10
    <input name="maxchars" value={{maxchars}}><br><br>
10
    <input name="maxchars" value={{maxchars}}>
11
    <b>Time</b> <small class="gray">(time format string)</small>
11
    <b>Time</b> <small class="gray">(time format string)</small>
12
    <input name="timefmt" value={{timefmt}}><br><br>
12
    <input name="timefmt" value={{timefmt}}>
13
    <b>Folder depth</b> <small class="gray">(number of levels of the folder dropdown)</small>
13
    <b>Folder depth</b> <small class="gray">(number of levels of the folder dropdown)</small>
14
    <input name="dirdepth" value={{dirdepth}}><br><br>
14
    <input name="dirdepth" value={{dirdepth}}>
15
    <hr>
15
    <hr>
16
    <b>Locations</b><br>
16
    <b>Locations</b><br>
17
    %for d in dirs:
17
    %for d in dirs:
18
        <small>{{d}}</small><input name="mount_{{d}}" value={{mounts[d]}}>
18
        <small>{{d}}</small><input name="mount_{{d}}" value={{mounts[d]}}>
19
    %end
19
    %end