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
16 lines
529 B
HTML
16 lines
529 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ status_code }} {{ status_text }} - {{ site_domain }}{% endblock %}
|
|
|
|
{% block head_meta %}
|
|
<meta name="robots" content="noindex, nofollow">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="error-page">
|
|
<h1 class="error-code">{{ status_code }}</h1>
|
|
<p class="error-status">{{ status_text }}</p>
|
|
<p class="error-detail">{{ error_message }}</p>
|
|
<a href="/{{ locale.tag() }}" class="error-home-link">{{ "Go to Home"|t(locale) }}</a>
|
|
</div>
|
|
{% endblock %} |