Boost contact’s tag links to update <main> with the filtered list
This commit is contained in:
parent
5d82597d14
commit
2086f68bd8
|
@ -29,18 +29,18 @@
|
|||
<th>{{( pgettext "Tags" "title" )}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody data-hx-push-url="false" data-hx-swap="beforeend">
|
||||
<tbody>
|
||||
{{ with .Contacts }}
|
||||
{{- range $contact := . }}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><a href="{{ companyURI "/contacts/"}}{{ .Slug }}" data-hx-boost="true">{{ .Name }}</a></td>
|
||||
<td><a href="{{ companyURI "/contacts/"}}{{ .Slug }}" data-hx-push-url="false" data-hx-swap="beforeend" data-hx-boost="true">{{ .Name }}</a></td>
|
||||
<td><a href="mailto:{{ .Email }}">{{ .Email }}</a></td>
|
||||
<td><a href="tel:{{ .Phone }}">{{ .Phone }}</a></td>
|
||||
<td>
|
||||
{{- range $index, $tag := .Tags }}
|
||||
{{- if gt $index 0 }}, {{ end -}}
|
||||
<a href="?tag={{ . }}">{{ . }}</a>
|
||||
<a href="?tag={{ . }}" data-hx-target="main" data-hx-boost="true">{{ . }}</a>
|
||||
{{- end }}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue