Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
5b23b406
Commit
5b23b406
authored
Feb 10, 2016
by
Okhin
Browse files
Adding a - temporary - template for search to play with
parent
40541777
Changes
1
Show whitespace changes
Inline
Side-by-side
nnmon/templates/search/search.html
0 → 100644
View file @
5b23b406
{% extends 'base.html' %}
{% load bt %}
{% load i18n %}
{% block active_tab_home %}id="current"{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"{% media_url %}/css/jquery-ui.css"
/>
{% endblock %}
{% block content %}
<div
id=
"global"
>
<h2>
Search
</h2>
<form
method=
"get"
action=
"."
>
<table>
{{ form.as_table }}
<tr>
<td>
</td>
<td>
<input
type=
"submit"
value=
"Search"
>
</td>
</tr>
</table>
{% if query %}
<h3>
Results
</h3>
{% for result in page.object_list %}
<p>
<a
href=
"{{ result.object.get_absolute_url }}"
>
{{ result.object.title }}
</a>
</p>
{% empty %}
<p>
No results found.
</p>
{% endfor %}
{% if page.has_previous or page.has_next %}
<div>
{% if page.has_previous %}
<a
href=
"?q={{ query }}&page={{ page.previous_page_number }}"
>
{% endif %}
«
Previous{% if page.has_previous %}
</a>
{% endif %}
|
{% if page.has_next %}
<a
href=
"?q={{ query }}&page={{ page.next_page_number }}"
>
{% endif %}Next
»
{% if page.has_next %}
</a>
{% endif %}
</div>
{% endif %}
{% else %}
{# Show some example queries to run, maybe query syntax, something else? #}
{% endif %}
</form>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment