aboutsummaryrefslogtreecommitdiff
blob: 210d7e14679cf9d73d4e5827f2a73331110fbf44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
{{template "head" .Header}}
<body>
{{template "header" .Header}}

{{template "browseuseflagsheader" .}}


<div class="tab-content" id="myTabContent">


<div class="container mb-5">
    <div class="row">
        <div class="col-12 {{if not .Useflags}}mt-5 pt-5{{end}}">

            <div class="col-12 mt-3 text-center">
                <h2>Find USE flags</h2>
            </div>

            <div class="col-12">
                <form action="/useflags/search" method="get" class="useflag-search mt-3 mb-5 mx-5 px-5">
                    <div class="typeahead-container mx-5 px-5">
                        <div class="typeahead-field">
                            <span class="typeahead-query" style="font-size: 1.1em; height: 2.3em;">
                                <input id="q" name="q" class="rounded-left" style="font-size: 1.1em; height: 2.3em;border-right: 0px;" type="search" autocomplete="off" placeholder="Find USE flags">
                            </span>
                            <span class="typeahead-button" style="font-size: 1.1em!important; height: 2.3em!important;border-left: 0px;">
                                <button style="border-top-right-radius: 0.25rem !important; border-bottom-right-radius: 0.25rem !important; font-size: 1.1em!important; height: 2.3em!important;border-left: 0px;box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);!important;" type="submit">
                                  <span class="typeahead-search-icon"></span>
                                </button>
                            </span>
                        </div>
                    </div>
                </form>
            </div>

						{{if .Search}}
	            {{if .Useflags}}
                <h2>USE Flag Search Results <small>for {{ .Search }}</small></h2>

                <div class="card border-0">
                    <div class="list-group">
                        {{ range .Useflags }}
                        <a class="list-group-item list-group-item-action text-dark" href="/useflags/{{.Name}}">
                            <h3 class="kk-search-result-header">{{.Name}}</h3>
                            {{.Description}}
                        </a>
                        {{end}}
                    </div>
                </div>
		          {{else}}
								<h2>No results found <small> for {{ .Search }}</small></h2>
							{{end}}
						{{end}}
        </div>
    </div>
</div>


</div>


{{template "footer" .Application }}


</body>
</html>