mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 02:25:30 +00:00
Further changes to the bände list
This commit is contained in:
20
views/routes/baende/results/body.gohtml
Normal file
20
views/routes/baende/results/body.gohtml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ $model := . }}
|
||||
|
||||
<div id="baenderesults">
|
||||
<div id="baende-count" class="text-lg font-semibold font-sans text-gray-600 whitespace-nowrap" hx-swap-oob="true">
|
||||
{{ len $model.result.Entries }} Bände
|
||||
</div>
|
||||
{{ template "_baende_table" $model }}
|
||||
|
||||
{{ if $model.search }}
|
||||
<script type="module">
|
||||
let elements = document.querySelectorAll('.baende-text');
|
||||
let mark_instance = new Mark(elements);
|
||||
setTimeout(() => {
|
||||
mark_instance.mark('{{ $model.search }}', {
|
||||
"seperateWordSearch": true,
|
||||
});
|
||||
}, 200);
|
||||
</script>
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user