| {% extends 'layout.html' %} | {% block page_title %}Search{% if project %} {{ project.name }}{% endif %}{% endblock %} | {% block head %} script(src="{{ url_for('static_pillar', filename='assets/js/vendor/videojs-6.2.8.min.js') }}") script(src="{{ url_for('static_pillar', filename='assets/js/vendor/videojs-ga-0.4.2.min.js') }}") script(src="{{ url_for('static_pillar', filename='assets/js/vendor/videojs-hotkeys-0.2.20.min.js') }}") | {% endblock %} | {% block og %} meta(property="og:type", content="website") | {% if og_picture %} meta(property="og:image", content="{{ og_picture.thumbnail('l', api=api) }}") meta(property="twitter:image", content="{{ og_picture.thumbnail('l', api=api) }}") | {% endif %} | {% if project %} meta(property="og:title", content="{{project.name}} - Blender Cloud") meta(name="twitter:title", content="{{project.name}} on Blender Cloud") meta(property="og:url", content="{{url_for('projects.view', project_url=project.url, _external=True)}}") meta(property="og:description", content="{{project.summary}}") meta(name="twitter:description", content="{{project.summary}}") | {% endif %} | {% endblock %} | {% block body %} | {% if project %} script. document.body.dataset["projectId"] = "{{project._id}}"; | {% endif %} #search-container | {% if project %} #project_sidebar.bg-white ul.project-tabs.p-0 li.tabs-browse( title="Browse", data-toggle="tooltip", data-placement="right") a(href="{{url_for('projects.view', project_url=project.url, _external=True)}}") i.pi-folder li.tabs-search.active( title="Search", data-toggle="tooltip", data-placement="right") a(href="{{url_for('projects.search', project_url=project.url, _external=True)}}") i.pi-search | {% endif %} #search-sidebar input.search-field.p-2.bg-white( type="text", name="q", id="q", autocomplete="off", spellcheck="false", autocorrect="false", placeholder="Search by Title, Type...") .search-list-filters .filter-list | View as: ul.filter-list li.filter-list-type.grid( title="Browse as grid", data-list-type="grid") i.pi-layout li.filter-list-type.list( title="Browse as list", data-list-type="list") i.pi-list #accordion.panel-group.accordion(role="tablist", aria-multiselectable="true") #facets #pagination .search-list-stats #stats #search-list #hits #search-details #search-error #search-hit-container | {% raw %} // Facet template script(type="text/template", id="facet-template") .panel.panel-default a(data-toggle='collapse', data-parent='#accordion', href='#filter_{{ facet }}', aria-expanded='true', aria-controls='filter_{{ facet }}') .panel-heading(role='tab') .panel-title {{ title }} .panel-collapse.collapse.in(id='filter_{{ facet }}', role='tabpanel', aria-labelledby='headingOne') .panel-body | {{#values}} a.facet_link.toggleRefine( class='{{#refined}}refined{{/refined}}', data-facet='{{ facet }}', data-value='{{ value }}', href='#') span | {{ label }} small.facet_count.pull-right {{ count }} | {{/values}} // Hit template script(type="text/template", id="hit-template") .search-hit(data-hit-id='{{ objectID }}') .search-hit-thumbnail | {{#picture}} img(src="{{{ picture }}}") | {{/picture}} | {{^picture}} .search-hit-thumbnail-icon | {{#media}} i(class="pi-{{{ media }}}") | {{/media}} | {{^media}} i.dark(class="pi-{{{ node_type }}}") | {{/media}} | {{/picture}} | {{#is_free}} .search-hit-ribbon span free | {{/is_free}} .search-hit-name | {{ name }} .search-hit-meta span.project {{ project.name }} span.node_type {{{ node_type }}} | {{#media}} span.media ยท {{{ media }}} | {{/media}} span.when {{{ created_at }}} span.context a(href="/nodes/{{ objectID }}/redir") view in context // Pagination template script(type="text/template", id="pagination-template") ul.search-pagination.