Make source_url and issues_url optional and adapt content if not set

This commit is contained in:
David Lapshin
2024-05-21 16:23:18 +03:00
parent 39d75b08c7
commit b32c51b71a
3 changed files with 8 additions and 4 deletions

View File

@ -8,10 +8,12 @@
<h1>Page Not Found</h1>
<p>The requested page could not be found. If you feel this is not normal, then you can create an issue on the issue tracker.</p>
<p>The requested page could not be found.{% if config.extra.issues_url %} If you feel this is not normal, then you can create an issue on the issue tracker.{% endif %}</p>
<p class="dialog-buttons">
<a onclick="window.history.go(-1)" class="inline-button">Go Back</a>
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
{% if config.extra.issues_url %}
<a class="inline-button colored" href="{{ config.extra.issues_url }}">File an Issue</a>
{% endif %}
</p>
{% endblock content %}