]> git.ipfire.org Git - pbs.git/blob - src/templates/search-form.html
e2b696ae99f54fdea023a36519eade5eb80c0031
[pbs.git] / src / templates / search-form.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Advanced search") }}{% end block %}
4
5 {% block body %}
6 <ul class="breadcrumb">
7 <li>
8 <a href="/">{{ _("Home") }}</a>
9 <span class="divider">/</span>
10 </li>
11 <li class="active">
12 <a href="/search">{{ _("Search") }}</a>
13 </li>
14 </ul>
15
16 {% if pattern %}
17 <div class="page-header">
18 <h1>{{ _("No results for '%s'.") % pattern }}</h1>
19 </div>
20 {% else %}
21 <div class="page-header">
22 <h2>{{ _("Search") }}</h2>
23 </div>
24
25 <p class="lead ac">
26 {{ _("Type a search pattern into the box below and hit the button.") }}
27 </p>
28 {% end %}
29
30 <div class="row">
31 <div class="span4 offset4">
32 <form class="well ac" method="GET" action="/search">
33 <div class="input-append">
34 <input type="text" class="input-large typeahead-packages-autocomplete" name="q" placeholder="{{ _("Search") }}"
35 value="{{ pattern }}" autocomplete="off"><button type="submit" class="btn">{{ _("Go!") }}</button>
36 </div>
37 </form>
38 </div>
39 </div>
40
41 <hr>
42
43 <div class="row">
44 <div class="span12">
45 <div class="well">
46 <h4>{{ _("Search for packages by name or description") }}</h4>
47 <p>
48 {{ _("If you type a package name to the search box you will get a link to the package.") }}
49 {{ _("The search is performed in case insensitive mode.") }}
50 </p>
51 </div>
52 </div>
53 </div>
54
55 <div class="row">
56 <div class="span6">
57 <div class="well">
58 <h4>{{ _("Search for UUIDs") }}</h4>
59 <p>
60 {{ _("If you type a UUID to the search box, you will be directed to the job, build or package it belongs to.") }}
61 {{ _("This is a handy feature if you have a UUID and search for the corresponding package or build.") }}
62 </p>
63
64 <h5>{{ _("Examples") }}</h5>
65 <ul>
66 <li>fde110ca-f7d9-4ae5-a6c4-1e465a05662a</li>
67 </ul>
68 </div>
69 </div>
70
71 <div class="span6">
72 <div class="well">
73 <h4>{{ _("Search for files") }}</h4>
74 <p>
75 {{ _("You may also search for file names.") }}
76 {{ _("You will get a list of packages that contain the file.") }}
77 {{ _("The search pattern must start with a slash that it will be recognized as a file.") }}
78 </p>
79
80 <h5>{{ _("Examples") }}</h5>
81 <ul>
82 <li>/bin/bash</li>
83 <li>/usr/bin/gcc</li>
84 </ul>
85 </div>
86 </div>
87 </div>
88 {% end block %}