]> git.plutz.net Git - serve0/blob - templates/download.html.sh
styling for pagination links
[serve0] / templates / download.html.sh
1 # Copyright 2015 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19   <form class="panel" id="advfilter" style="display: none;"
20         action="?action=filter" method="post" accept-charset="UTF-8">
21     <input disabled type="text" name="s" value="$search" placeholder="Search">
22     <label for="o2" class="order">Order by:</label>
23     <select disabled class="order" size="1" name="o" id="o2">
24       <option>Name</option>
25       <option>Date</option>
26       <option>Length</option>
27     </select>
28     <input disabled type="submit" name="submit" value="Find">
29
30     <a class="panel clearsearch" href="?">Clear All</a>
31     <a class="panel advanced hide" href="#" 
32      onclick="javascript:hide('advfilter');$(for n in {1..9}; do echo "hide('filter$n');"; done)show_block('search')"
33     >Hide</a>
34     <hr>
35
36     <p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
37
38     <p class="filter final">
39       <label for="o3" class="order">Order by:</label>
40       <select class="edit order" size="1" name="o" id="o3">
41         <option>Name</option>
42         <option>Date</option>
43         <option>Length</option>
44       </select>
45       <input type="submit" value="Filter!">
46     </p>
47
48     <p class="quicklinks">
49       <label class="quicklinks">Most recent</label>
50       $(output=''
51         tac ${_DATA}/meta/recent |while [ "$(echo "$output" |wc -l)" -lt 10 ] && read line; do
52           line="<a href="$line">$line</a>"
53           echo "$output" |grep -qF "$line" || output="$output$line\n"
54         done
55         echo $output
56       )
57     </p>
58   </form>
59
60
61   <form action="?action=multitag&${page_this}" method="post" accept-charset="UTF-8">
62     <ul id="thumblist">
63       $(thumblist)
64     </ul>
65     $(tagger)
66   </form>
67 EOF
68
69 # vi:set filetype=html: