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

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

Improved error display

parent 87574704
Loading
Loading
Loading
Loading
+13 −1
Original line number Original line Diff line number Diff line
@@ -79,6 +79,18 @@ a {
#page_not_found_404 img {
#page_not_found_404 img {
  max-width: 70%;
  max-width: 70%;
}
}
#errors {
  border: 2px solid #e06572;
  border-radius: 8px;
  padding: 8px;
}
#errors .title {
  margin-top: 0;
  margin-bottom: 8px;
}
#errors pre {
  background-color: rgba(224, 101, 114, 0.1);
}
.inline {
.inline {
  display: flex;
  display: flex;
  flex-direction: row;
  flex-direction: row;
@@ -323,7 +335,7 @@ pre {
  background: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  padding: 8px 16px;
  border-radius: 8px;
  border-radius: 8px;
  white-space: pre-wrap;
  white-space: pre-line;
}
}
footer {
footer {
  position: absolute;
  position: absolute;
+0 −0

File changed.

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

+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ pre {
  background: @dim-color-lighter;
  background: @dim-color-lighter;
  padding: @spacing_medium @spacing_large;
  padding: @spacing_medium @spacing_large;
  border-radius: @corner-radius;
  border-radius: @corner-radius;
  white-space: pre-wrap;
  white-space: pre-line;
}
}




+13 −0
Original line number Original line Diff line number Diff line
@@ -56,6 +56,19 @@
    max-width: 70%;
    max-width: 70%;
  }
  }
}
}
#errors {
  .widget-border(@color_danger);
  border-radius: @corner-radius;
  padding: @spacing_medium;

  .title {
    margin-top: 0;
    margin-bottom: @spacing_medium;
  }
  pre {
    background-color: fade(@color_danger, 10%);
  }
}




.inline {
.inline {
+0 −18
Original line number Original line Diff line number Diff line
@@ -56,24 +56,6 @@
    {% set inline_search_form = true %}
    {% set inline_search_form = true %}
    <main>
    <main>


    {# Ignore errors for now, they might not be very useful #}
    {% if errors and False %}
        <div class="error danger" role="alert">
            <div class="header">
                <strong class="lead">{{ _('Error!') }}</strong>

                <button class="close" data-dismiss="alert" type="button">
                    {{ icon("close") }}
                </button>
            </div>
            <ul>
                {% for message in errors %}
                <li>{{ message }}</li>
                {% endfor %}
            </ul>
        </div>
    {% endif %}

    {% block site_alert_error %}
    {% block site_alert_error %}
    {% endblock %}
    {% endblock %}
    {% block site_alert_warning %}
    {% block site_alert_warning %}
Loading