mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
Replace all {{ t_field_name }} template variables with {{ "msgid"|t(locale) }}
filter calls across all 6 template files. This works with the #[askama::filter_fn]
defined in handlers/html.rs, which calls i18n::translate() directly.
Templates updated: index.html, error_alert.html, error_page.html,
_footer.html, _footer_lang.html, _search_form.html
45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ "Error"|t(locale) }} - {{ site_domain }}{% endblock %}
|
|
|
|
{% block head_meta %}
|
|
<meta name="robots" content="noindex, nofollow">
|
|
{% endblock %}
|
|
|
|
{% block head_preconnect %}
|
|
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
|
|
{% endblock %}
|
|
|
|
{% block head_stylesheets %}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.5.5/css/simple-line-icons.min.css">
|
|
{% endblock %}
|
|
|
|
{% block head_extra %}
|
|
<script>alert("{{ error_message }}");</script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% let autofocus = true %}
|
|
{% include "_search_form.html" %}
|
|
|
|
<div class="error-banner" role="alert">
|
|
<p>{{ error_message }}</p>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="/static/script.js?v={{ js_version }}" defer></script>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<footer class="site-footer">
|
|
<div class="footer-inner">
|
|
<div class="footer-left">
|
|
{% include "_footer.html" %}
|
|
</div>
|
|
<div class="footer-right">
|
|
{% include "_footer_lang.html" %}
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
{% endblock %} |