51 lines
2 KiB
HTML
51 lines
2 KiB
HTML
{{template "header" .}}
|
|
|
|
<div class="page-header">
|
|
<div class="page-header-title">
|
|
<h1>Suche in allen Projekten {{template "helplink" "plattform-admin#suche-in-allen-projekten"}}</h1>
|
|
<span class="help">Alle Projekte dieses Workspace auf einmal — „In welchem Projekt stand das nochmal?“.
|
|
Treffer nach Projekt gruppiert, das passendste Projekt oben.</span>
|
|
</div>
|
|
</div>
|
|
|
|
<form method="GET" action="/admin/search" class="toolbar" role="search">
|
|
<input type="search" name="q" value="{{.Data.Query}}" placeholder="In allen Projekten suchen… ( / )"
|
|
autocomplete="off" aria-keyshortcuts="/" autofocus>
|
|
<button type="submit" class="secondary">Suchen</button>
|
|
</form>
|
|
|
|
{{with .Data}}
|
|
{{if .Query}}
|
|
<p class="help">{{.Hits}} Treffer in {{len .Groups}} von {{.Projects}} Projekten für „{{.Query}}“.</p>
|
|
|
|
{{range .Groups}}
|
|
{{$slug := .Project.Slug}}
|
|
<section class="section">
|
|
<h2><a href="/p/{{$slug}}/">{{.Project.Name}}</a></h2>
|
|
<ul class="entries">
|
|
{{range .Items}}
|
|
<li>
|
|
<div class="entry-content">
|
|
<a class="entry-title" href="/p/{{$slug}}/e/{{.Entry.Slug}}">{{.Entry.Title}}</a>
|
|
<div class="meta">
|
|
{{if .Entry.Curated}}<span class="badge emphasis">kuratiert</span>{{end}}
|
|
{{range .Entry.Tags}}<span class="badge">{{.}}</span>{{end}}
|
|
<span>{{datetime .Entry.UpdatedAt}}</span>
|
|
</div>
|
|
{{if .Snippet}}<p class="entry-excerpt">{{.Snippet}}</p>{{end}}
|
|
</div>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
{{if .More}}<p class="help"><a href="/p/{{$slug}}/?q={{$.Data.Query}}">Weitere Treffer in {{.Project.Name}} …</a></p>{{end}}
|
|
</section>
|
|
{{else}}
|
|
<div class="empty">
|
|
<p>Nichts gefunden für „{{.Query}}“.</p>
|
|
<p class="help">Es wird auch nach Wortanfängen und ähnlich geschriebenen Wörtern gesucht — vielleicht hilft ein anderer Begriff.</p>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
|
|
{{template "footer" .}}
|