]> git.ipfire.org Git - pbs.git/blame - src/templates/search-form.html
bootstrap4: port search sites
[pbs.git] / src / templates / search-form.html
CommitLineData
9137135a
MT
1{% extends "base.html" %}
2
3{% block title %}{{ _("Advanced search") }}{% end block %}
4
5{% block body %}
3d2ea9f4
JS
6 <div class="row">
7 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
8 <nav aria-label="breadcrumb" role="navigation">
9 <ol class="breadcrumb">
10 <li class="breadcrumb-item"><a href="/">{{ _("Home") }}</a></li>
11 <li class="breadcrumb-item active">
12 <a href="/search">{{ _("Search") }}</a>
13 </li>
14 </ol>
15 </nav>
f6e6ff79 16 </div>
3d2ea9f4 17 </div>
f6e6ff79 18
3d2ea9f4
JS
19 <div class="row">
20 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
21 {% if pattern %}
22 <h2 style="word-wrap: break-word;">
23 {{ _("No results for '%s'.") % pattern }}
24 </h2>
25 {% else %}
26 <h2 style="word-wrap: break-word;">
27 {{ _("Search") }}
28 </h2>
29
30 <p class="">
31 {{ _("Type a search pattern into the box below and hit the button.") }}
32 </p>
33 {% end %}
34 </div>
35 </div>
f6e6ff79
MT
36
37 <div class="row">
3d2ea9f4
JS
38 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
39 <form class="form-inline" method="GET" action="/search">
40 <div class="form-group">
41 <input type="text" class="form-control mr-2" id="q" name="q" placeholder="{{ _("Search") }}"
42 value="{{ pattern }}">
d61c6433 43 </div>
3d2ea9f4 44 <button type="submit" class="btn btn-primary">{{ _("Go!") }}</button>
f6e6ff79
MT
45 </form>
46 </div>
47 </div>
48
d61c6433 49 <hr>
f6e6ff79
MT
50
51 <div class="row">
3d2ea9f4 52 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
9259ea7b 53 <h4>{{ _("Search for packages by name or description") }}</h4>
f6e6ff79
MT
54 <p>
55 {{ _("If you type a package name to the search box you will get a link to the package.") }}
56 {{ _("The search is performed in case insensitive mode.") }}
57 </p>
f6e6ff79
MT
58 </div>
59 </div>
60
61 <div class="row">
3d2ea9f4
JS
62 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
63 <h4>{{ _("Search for UUIDs") }}</h4>
64 <p>
65 {{ _("If you type a UUID to the search box, you will be directed to the job, build or package it belongs to.") }}
66 {{ _("This is a handy feature if you have a UUID and search for the corresponding package or build.") }}
67 </p>
f6e6ff79 68
3d2ea9f4
JS
69 <h5>{{ _("Examples") }}</h5>
70 <ul>
71 <li>fde110ca-f7d9-4ae5-a6c4-1e465a05662a</li>
72 </ul>
f6e6ff79 73 </div>
3d2ea9f4 74 </div>
f6e6ff79 75
3d2ea9f4
JS
76 <div class="row">
77 <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
78 <h4>{{ _("Search for files") }}</h4>
79 <p>
80 {{ _("You may also search for file names.") }}
81 {{ _("You will get a list of packages that contain the file.") }}
82 {{ _("The search pattern must start with a slash that it will be recognized as a file.") }}
83 </p>
f6e6ff79 84
3d2ea9f4
JS
85 <h5>{{ _("Examples") }}</h5>
86 <ul>
87 <li>/bin/bash</li>
88 <li>/usr/bin/gcc</li>
89 </ul>
f6e6ff79
MT
90 </div>
91 </div>
9137135a 92{% end block %}