Commit eeb2e1f5 authored by mrodzis's avatar mrodzis 🦊

Feature/#95 error message

parent 88ca389e
......@@ -5,7 +5,8 @@ xquery version "3.1";
:
: @author unknown
: @author Stefan Hynek
: @version 0.1
: @author Michelle Weidling
: @version 0.2
:)
module namespace app="https://sade.textgrid.de/ns/app";
......@@ -383,19 +384,6 @@ function app:display-charsyn-info($node as node(), $model as map(*)) {
};
(:~
: serves the error messages powered by programmingexcuses.com
: a random message is created on each error report and send out to the user.
: :)
declare function app:error($node as node(), $model as map(*))
{
hc:send-request(
<hc:request method="get" />,
'http://programmingexcuses.com/'
)[1]/*:body/*:div[@class="wrapper"]/*:center/*:a/text()
};
declare function app:currentyear($node as node(), $model as map(*)) {
year-from-date( current-date() )
};
......
......@@ -8,7 +8,8 @@
<div class="error-page__icon"/>
<h1 class="error-page__header text-muted">
<span data-template="app:error">Oops. We can not show the page you are looking for.</span>
<span>404 ‒ Page not found.</span>
<p>An error has been generated by the application.</p>
</h1>
<a href="index.html" class="btn btn-lg btn-primary">
Take me back to the homepage
......@@ -17,7 +18,6 @@
</div>
</div>
<div class="row">
<p>An error has been generated by the application.</p>
<pre class="error templates:error-description"/>
</div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment