summaryrefslogtreecommitdiff
path: root/searx/templates/simple/result_templates/keyvalue.html
blob: 0495b46c6d051272af58f6c9d6f9332204a64370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<article class="result result-keyvalue {% if result.category -%}category-{{ result.category }}{%- endif -%}">
  <table>
    {%- if result.caption %}<caption>{{ result.caption }}</caption>{%- endif -%}
    {%- if result.key_title or result.value_title %}
      <thead>
        <tr>
          <th class="col-key" scope="col" >{{result.key_title}}</th>
          <th class="col-value" scope="col" >{{result.value_title}}</th>
        </tr>
      </thead>
    {%- endif -%}
    {%- for key, value in result.kvmap.items() -%}
      <tr class="{{ loop.cycle('odd', 'even') }}">
        <th class="col-key" scope="row">{{ key }}</th>{{- '' -}}
        <td class="col-value">{{ value }}</td>{{- '' -}}
      </tr>
    {%- endfor -%}
  </table>{{- '' -}}
  <div class="engines">{% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %}</div>{{- '' -}}
  <div class="break"></div>{{- '' -}}
</article>