forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
134 lines (108 loc) · 6.55 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{%- extends "layout.html" %}
{% set title = _('Search') %}
{%- block content %}
{% block docs_navbar %}
{{ super() }}
{% include 'baner.html' %}
{% endblock %}
{% block body %}
<atomic-search-interface id="search"
fields-to-include='["ovversion", "ovdoctype", "filetype", "date", "source", "author", "sourcetype", "language", "description"]'>
<atomic-search-layout>
<atomic-layout-section section="search">
<atomic-search-box>
<atomic-search-box-query-suggestions></atomic-search-box-query-suggestions>
</atomic-search-box>
</atomic-layout-section>
<!-- ADDITIONAL FILTERS SECTION-->
<atomic-layout-section section="facets">
<div class="view-selector-container">
<button id="view-selector-grid" class="view-selector">
<i class="fas fa-th"></i> Grid
</button>
<button id="view-selector-list" class="view-selector">
<i class="fas fa-list"></i> List
</button>
</div>
<atomic-facet-manager>
<atomic-facet field="ovversion" label="Version" sort-criteria="alphanumericDescending"></atomic-facet>
<!-- <atomic-facet field="ovdoctype" label="Document type"></atomic-facet> -->
<!-- <atomic-facet field="language" label="Language"></atomic-facet> -->
</atomic-facet-manager>
</atomic-layout-section>
<atomic-layout-section section="main">
<atomic-layout-section section="status">
<!-- RESULTS SUMMARY SECTION -->
<atomic-breadbox></atomic-breadbox>
<atomic-query-summary></atomic-query-summary>
<atomic-refine-toggle></atomic-refine-toggle>
<!-- SORT SECTION -->
<atomic-sort-dropdown>
<atomic-sort-expression label="relevance" expression="relevancy"></atomic-sort-expression>
<atomic-sort-expression label="most-recent" expression="date descending"></atomic-sort-expression>
</atomic-sort-dropdown>
<atomic-did-you-mean></atomic-did-you-mean>
<atomic-notifications></atomic-notifications>
</atomic-layout-section>
<atomic-layout-section section="results">
<atomic-result-list id="atomic-result-list" display="grid">
<atomic-result-template>
<template>
<!-- RESULT TOP BADGES SECTION -->
<atomic-result-section-badges>
<atomic-result-badge>
<atomic-result-multi-value-text field="ovversion"></atomic-result-multi-value-text>
</atomic-result-badge>
<atomic-result-badge
icon="https://raw.githubusercontent.com/Rush/Font-Awesome-SVG-PNG/master/black/svg/language.svg">
<atomic-result-multi-value-text field="language"></atomic-result-multi-value-text>
</atomic-result-badge>
<atomic-field-condition must-match-is-recommendation="true">
<atomic-result-badge label="Recommended"></atomic-result-badge>
</atomic-field-condition>
<atomic-field-condition must-match-is-top-result="true">
<atomic-result-badge label="Top Result"></atomic-result-badge>
</atomic-field-condition>
</atomic-result-section-badges>
<!-- RESULT ICON SECTION -->
<atomic-result-section-visual>
<atomic-icon class="icon" icon="assets://gform.svg"></atomic-result-icon>
<!-- EXAMPLE OF CHANGING ICON -->
<!-- <atomic-field-condition must-match-ovversion="2021.4">
<atomic-icon class="icon" icon="assets://gsheet.svg"></atomic-icon>
</atomic-field-condition>
<atomic-field-condition must-match-ovversion="2022.2">
<atomic-icon class="icon" icon="assets://html.svg"></atomic-icon>
</atomic-field-condition>
<atomic-field-condition must-not-match-ovversion="2022.2, 2021.4">
<atomic-icon class="icon" icon="assets://gform.svg"></atomic-icon>
</atomic-field-condition> -->
</atomic-result-section-visual>
<atomic-result-section-title>
<atomic-result-link target="_blank"></atomic-result-link>
</atomic-result-section-title>
<atomic-result-section-excerpt>
<atomic-result-text field="excerpt"></atomic-result-text>
</atomic-result-section-excerpt>
<atomic-result-section-bottom-metadata>
<atomic-field-condition class="field" if-defined="description">
<atomic-result-text field="description"></atomic-result-text>
</atomic-field-condition>
</atomic-result-section-bottom-metadata>
</template>
</atomic-result-template>
</atomic-result-list>
<atomic-query-error></atomic-query-error>
<atomic-no-results></atomic-no-results>
</atomic-layout-section>
<atomic-layout-section section="pagination">
<atomic-load-more-results></atomic-load-more-results>
</atomic-layout-section>
</atomic-layout-section>
</atomic-search-layout>
</atomic-search-interface>
{% endblock %}
{%- block scripts_end %}
{{ _webpack.body_post() }}
{%- endblock %}
{%- endblock %}