Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CKAN Custom CSS
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
AMRDC
CKAN Custom CSS
Commits
bd47e957
Commit
bd47e957
authored
Feb 11, 2022
by
Matt Noojin
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
d3ba4654
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
snippets/search.html
+32
-0
32 additions, 0 deletions
snippets/search.html
with
32 additions
and
0 deletions
snippets/search.html
0 → 100644
+
32
−
0
View file @
bd47e957
{% set tags = h.get_facet_items_dict('tags', limit=5) %}
{% set placeholder = _('E.g. environment') %}
<style>
.search-form
{
margin-bottom
:
0
;
}
.homepage
.module-search
.search-giant
{
margin-bottom
:
0
;
}
.homepage
.module-search
.module-content
{
background
:
linear-gradient
(
45deg
,
#c5050c
,
#007db1
);
}
</style>
<div
class=
"module module-search"
>
<form
class=
"module-content search-form"
method=
"get"
action=
"{% url_for controller='package', action='search' %}"
>
<div
class=
"search-input form-group search-giant"
>
<input
aria-label=
"{% block header_site_search_label %}{{ _('Search datasets') }}{% endblock %}"
id=
"field-main-search"
type=
"text"
class=
"form-control"
name=
"q"
value=
""
autocomplete=
"off"
placeholder=
"Search Antarctic data..."
/>
<button
type=
"submit"
>
<i
class=
"fa fa-search"
></i>
<span
class=
"sr-only"
>
{{ _('Search') }}
</span>
</button>
</div>
<!-- Advanced search is currently under construction! Coming soon! -->
<!-- <a href="https://amrdcdata.ssec.wisc.edu/pages/advanced-search" style="color:#FFFFFF;"><b>{{ _('Advanced Search') }}</b></a> -->
</form>
<div
class=
"tags"
>
<h3>
{{ _('Popular tags') }}
</h3>
{% for tag in tags %}
<a
class=
"tag"
href=
"{% url_for controller='package', action='search', tags=tag.name %}"
>
{{ h.truncate(tag.display_name, 30) }}
</a>
{% endfor %}
</div>
</div>
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