Refactor all templates to dictpress v5 (Rust/Tera templates).
This commit is contained in:
+9
-11
@@ -1,16 +1,14 @@
|
||||
{{ define "search" }}
|
||||
{{ template "header" . }}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<section class="content results">
|
||||
{{ if not .Data.Results.Entries }}
|
||||
<h2>{{ .L.T "public.noResultsTitle" }}</h2>
|
||||
{% if not results.entries or results.entries | length == 0 %}
|
||||
<h2>{{ t(key="public.noResultsTitle") }}</h2>
|
||||
<p>
|
||||
{{ .L.T "public.noResults" }}
|
||||
{{ t(key="public.noResults") }}
|
||||
</p>
|
||||
{{ else }}
|
||||
{{ template "results" . }}
|
||||
{{ end }}
|
||||
{% else %}
|
||||
{% include "results.html" %}
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
{{ template "footer" . }}
|
||||
{{ end }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user