about summary refs log tree commit diff stats
path: root/frontend/templates/blocks/options.gotmpl
blob: 5a08bae0f5f4d67103e4c778ed4ac7ecae1700d4 (plain)
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
{{- define "hits" }}
  <table>
    <thead>
      <tr>
        <th scope="col">Title</th>
        <th scope="col">Description</th>
      </tr>
    </thead>
    <tbody>
      {{- range . }}
        {{- with .Data }}
          <tr>
            <td>
              <a href="{{ .Name }}" class="open-dialog">{{ .Name }}</a>
            </td>
            <td>
              {{ markdown (firstSentence .Description) }}
              <dialog id="{{ .Name }}"></dialog>
            </td>
          </tr>
        {{- end }}
      {{- end }}
    </tbody>
  </table>
{{- end }}