{# This page is shown for any syntax errors in a template.
This should NOT come up for an end-user, as it indicates a bad mess-up on our part.

As such there is not much that end-user can do except report it to us.
The debugging information is in English in the expectation that any contributors are at least somewhat familiar in that language #}
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>[dialog-error]{% trans %}Internal Error{% endtrans %}</title>
  <style>
    @import url(odysseus:butterick.css);
    @import url(odysseus:ext/hljs-solarized-light.css);
    pre strong {border-bottom: thin dashed red;}
    table {background: #fdf6e3;} /* Match Solarized light */
    /* Solarized Light adds whitespace which misaligns the table */
    pre {margin: 0;}
  </style>
</head>
<body class="branded">
  <main>
    <h1>{% trans %}This Is Bad…{% endtrans %}</h1>
    <p>{% trans %}I cannot understand my own code. If you are an Odysseus developer more information (in English) is below. If you aren't, please <a href="https://github.com/alcinnz/Odysseus/issues/new">tell us about the problem</a>. It helps if you can save this page and attach it to your message.{% endtrans %}</p>

    <hr />
    <h2>{{ err-code }}{% if err-tag %}
        &mdash; on {% templatetag openblock %} {{ err-tag }}
        {% templatetag closeblock %}{% endif %}</h2>
    <p>{{ err-text }}</p>
    <table><tr>
      <th><a href="https://github.com/alcinnz/Odysseus/tree/master/data/pages/{{ path }}#L{{ line-number }}">{{ line-number|add:1 }}</a></th>
      <td><pre class="django">{% error-line %}</pre></td>
    </tr></table>
  </main>

  <script src="odysseus:ext/highlight.pack.js"></script>
  <script>hljs.highlightBlock(document.querySelector('pre'))</script>
</body>
</html>
