Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
0db4cfbe
Commit
0db4cfbe
authored
7 years ago
by
Chris Lawton
Browse files
Options
Downloads
Patches
Plain Diff
updating search results listings to use listing class for styling
parent
b896e26d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/public/search/templates/search/search.html
+16
-20
16 additions, 20 deletions
opentech/public/search/templates/search/search.html
with
16 additions
and
20 deletions
opentech/public/search/templates/search/search.html
+
16
−
20
View file @
0db4cfbe
...
...
@@ -4,19 +4,8 @@
{% block page_title %}Search results{% endblock %}
{% block title %}{% if search_query %}Search results for
“
{{ search_query }}
”
{% else %}Search{% endif %}{% endblock %}
{% block content %}
{% get_search_promotions search_query as search_picks %}
{% if search_picks %}
<ul>
{% for pick in search_picks %}
<li>
<div
class=
"wrapper wrapper--small wrapper--top-bottom-inner-space"
>
<h2
class=
"heading heading--no-margin"
>
{% if search_query %}Search results for
“
{{ search_query }}
”
{% else %}Search{% endif %}
</h2>
{% include "search/includes/search_result.html" with result=pick.page.specific %}
</li>
{% endfor %}
</ul>
{% endif %}
{% if search_results %}
{% with count=search_results.paginator.count %}
...
...
@@ -26,20 +15,27 @@
<p>
No results found.
</p>
{% endif %}
<ul>
{% for result in search_results %}
<li>
{% include "search/includes/search_result.html" with result=result.specific %}
</li>
{% endfor %}
</ul>
{% include "includes/pagination.html" with paginator_page=search_results %}
<form
class=
"form"
action=
"{% url 'search' %}"
method=
"get"
role=
"search"
>
<input
class=
"input input--bottom-space"
type=
"text"
placeholder=
"Search…"
name=
"query"
{%
if
search_query
%}
value=
"{{ search_query }}"
{%
endif
%}
>
<input
class=
"link link--button"
type=
"submit"
value=
"Search"
>
</form>
{% get_search_promotions search_query as search_picks %}
{% if search_picks %}
<div
class=
"wrapper wrapper--listings"
>
{% for pick in search_picks %}
{% include "search/includes/search_result.html" with result=pick.page.specific %}
{% endfor %}
</div>
{% endif %}
{% if search_results %}
<div
class=
"wrapper wrapper--listings"
>
{% for result in search_results %}
{% include "search/includes/search_result.html" with result=result.specific %}
{% endfor %}
</div>
{% include "includes/pagination.html" with paginator_page=search_results %}
{% endif %}
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment