Changeset fe86013 in Klonkt for src/views/pages/search.ejs
- Timestamp:
- 06/21/2026 11:45:21 AM (3 months ago)
- Branches:
- main
- Children:
- 929d98d
- Parents:
- 137cca5
- File:
-
- 1 edited
-
src/views/pages/search.ejs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/search.ejs
r137cca5 rfe86013 2 2 <% const _tracks = (typeof tracks !== 'undefined' && tracks) ? tracks : []; %> 3 3 <div class="container search-page"> 4 <h1> Zoeken</h1>4 <h1><%= t('nav.search') %></h1> 5 5 6 6 <form method="get" action="<%= _base %>/search" class="search-page-form"> … … 9 9 name="q" 10 10 value="<%= query %>" 11 placeholder=" Zoek posts en nummers…"11 placeholder="<%= t('search.placeholder') %>" 12 12 autocomplete="off" 13 13 autofocus 14 aria-label=" Zoekopdracht">15 <button type="submit" class="btn btn-primary"> Zoek</button>14 aria-label="<%= t('nav.search') %>"> 15 <button type="submit" class="btn btn-primary"><%= t('search.button') %></button> 16 16 </form> 17 17 18 18 <% if (queryError) { %> 19 <p class="search-error"> Kon die zoekopdracht niet uitvoeren. Probeer een eenvoudiger term.</p>19 <p class="search-error"><%= t('search.error') %></p> 20 20 <% } %> 21 21 22 22 <% if (query && !queryError) { %> 23 23 <p class="search-meta"> 24 <%= t otal %> resulta<%= total === 1 ? 'at' : 'ten' %> voor “<%= query %>”24 <%= t(total === 1 ? 'search.results_one' : 'search.results_other', { n: total, q: query }) %> 25 25 </p> 26 26 <% } %> 27 27 28 28 <% if (_tracks.length) { %> 29 <h2 class="search-section-title"> Nummers</h2>29 <h2 class="search-section-title"><%= t('search.section_tracks') %></h2> 30 30 <div class="search-tracks"> 31 31 <% _tracks.forEach(function(t) { … … 56 56 hx-swap="innerHTML" 57 57 hx-push-url="<%= t.postUrl %>" 58 aria-label=" Open in post">in post →</a>58 aria-label="<%= t('search.in_post') %>"><%= t('search.in_post') %></a> 59 59 <% } %> 60 60 </div> … … 64 64 65 65 <% if (results && results.length) { %> 66 <% if (_tracks.length) { %><h2 class="search-section-title"> Posts</h2><% } %>66 <% if (_tracks.length) { %><h2 class="search-section-title"><%= t('search.section_posts') %></h2><% } %> 67 67 <ol class="search-results"> 68 68 <% results.forEach(function(r) { %> … … 89 89 90 90 <% if (query && !queryError && !results.length && !_tracks.length) { %> 91 <p class="search-empty"> Niets gevonden.</p>91 <p class="search-empty"><%= t('search.empty') %></p> 92 92 <% } %> 93 93 </div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)