Search: use proper navigation
Also remove failing projectBrowseTypeList js
This commit is contained in:
@@ -1,7 +1,24 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
| {% from '_macros/_asset_list_item.html' import asset_list_item %}
|
| {% from '_macros/_asset_list_item.html' import asset_list_item %}
|
||||||
|
| {% from 'projects/_macros.html' import render_secondary_navigation %}
|
||||||
|
| {% from '_macros/_navigation.html' import navigation_homepage %}
|
||||||
include ../mixins/components
|
include ../mixins/components
|
||||||
|
|
||||||
|
| {% if project %}
|
||||||
|
| {% set title = 'search-project' %}
|
||||||
|
| {{ render_secondary_navigation(project, navigation_links, title) }}
|
||||||
|
| {% else %}
|
||||||
|
| {% set title = 'search' %}
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
| {% block navigation_tabs %}
|
||||||
|
| {% if project %}
|
||||||
|
| {{ render_secondary_navigation(project, navigation_links, title) }}
|
||||||
|
| {% else %}
|
||||||
|
| {{ navigation_homepage(title) }}
|
||||||
|
| {% endif %}
|
||||||
|
| {% endblock navigation_tabs %}
|
||||||
|
|
||||||
| {% block page_title %}Search{% if project %} {{ project.name }}{% endif %}{% endblock %}
|
| {% block page_title %}Search{% if project %} {{ project.name }}{% endif %}{% endblock %}
|
||||||
|
|
||||||
| {% block head %}
|
| {% block head %}
|
||||||
@@ -172,8 +189,6 @@ script.
|
|||||||
$(this).addClass('active');
|
$(this).addClass('active');
|
||||||
});
|
});
|
||||||
|
|
||||||
projectBrowseTypeList();
|
|
||||||
|
|
||||||
// Remove focus from search input so that the click event
|
// Remove focus from search input so that the click event
|
||||||
// bound to .search-hit can be fired on the first click.
|
// bound to .search-hit can be fired on the first click.
|
||||||
$('#search-list').hover(function(){
|
$('#search-list').hover(function(){
|
||||||
|
@@ -1,14 +1,12 @@
|
|||||||
| {% extends 'layout.html' %}
|
| {% extends 'layout.html' %}
|
||||||
|
| {% from 'projects/_macros.html' import render_secondary_navigation %}
|
||||||
|
|
||||||
include ../mixins/components
|
include ../mixins/components
|
||||||
|
|
||||||
| {% block page_title %}Edit {{ project.name }}{% endblock %}
|
| {% block page_title %}Edit {{ project.name }}{% endblock %}
|
||||||
|
|
||||||
| {% block navigation_tabs %}
|
| {% block navigation_tabs %}
|
||||||
+nav-secondary()
|
| {{ render_secondary_navigation(project, navigation_links, title) }}
|
||||||
+nav-secondary-link(
|
|
||||||
class="px-0 font-weight-bold",
|
|
||||||
href="{{url_for('projects.view', project_url=project.url, _external=True)}}")
|
|
||||||
| {{ project.name }}
|
|
||||||
| {% endblock navigation_tabs %}
|
| {% endblock navigation_tabs %}
|
||||||
|
|
||||||
| {% block body %}
|
| {% block body %}
|
||||||
@@ -90,7 +88,5 @@ script.
|
|||||||
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
|
||||||
| {% block footer_navigation %}
|
| {% block footer_container %}
|
||||||
| {% endblock %}
|
|
||||||
| {% block footer %}
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
Reference in New Issue
Block a user