Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87574704 authored by Daniel J. Ramirez's avatar Daniel J. Ramirez
Browse files

Cleanup and template improvements.

- Moved template components to their own folder
- Added a better 404 page
- Removed stats page (since stats are included in the engines preferences where they are more useful)
parent 9cc4db9e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -69,12 +69,14 @@ a {
  max-width: 600px;
  margin: auto;
}
#no_results_msg {
#no_results_msg,
#page_not_found_404 {
  text-align: center;
  margin-top: 64px;
  margin-bottom: 64px;
}
#no_results_msg img {
#no_results_msg img,
#page_not_found_404 img {
  max-width: 70%;
}
.inline {
+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −0

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@
  max-width: @size-content;
  margin: auto;
}
#no_results_msg {
#no_results_msg, #page_not_found_404 {
  text-align: center;
  margin-top: @spacing_xx-huge;
  margin-bottom: @spacing_xx-huge;
+11 −5
Original line number Diff line number Diff line
{% extends "eelo/base.html" %}
{% block content %}
<div class="text-center">
    <h1>{{ _('Page not found') }}</h1>
<div class="container contents full">
    <div>
        <div id="page_not_found_404" class="content-small-centered">
            <img src="{{ url_for('static', filename='img/not_found.svg') }}" alt="">
            <h2>{{_("Page not found")}}</h2>
    
            {% autoescape false %}
            <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
            {% endautoescape %}
        </div>
    </div>
</div>
{% endblock %}
Loading