krz/skunky-art

Alternative privacy frontend for DeviantArt.

clone: git clone https://gitbay.org/krz/skunky-art.git

v1.3.1: html/search.htm · raw

 1<!DOCTYPE html>
 2<html>
 3    <head>
 4        <title>SkunkyArt | Search "{{.QueryRaw}}"</title>
 5        <link rel="stylesheet" href="{{.BasePath}}stylesheet">
 6        <link rel="icon" type="image/x-icon" href="{{.BasePath}}favicon.ico">
 7    </head>
 8    <main>
 9        <header>
10            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
11            <form method="get" action="search">
12                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
13                <select name="type">
14                    <option value="all">All</option>
15                    <option value="tag">Tag</option>
16                    <option value="r">Groups</option>
17                </select>
18                <button type="submit">Search!</button>
19            </form>
20        </header>
21        {{if ne .Templates.Search.List ""}}
22        {{if ne .Templates.Search.Content.Total 0}}
23        <h1>Results by request '{{.QueryRaw}}': {{.Templates.Search.Content.Total}}</h1>
24        {{end}}
25        {{.Templates.Search.List}}
26        {{else}}
27        <p>No results :(</p>
28        {{end}}
29    </main>
30</html>