From d84ebf26093af9dd3f2faa4f6a457a148e6387f3 Mon Sep 17 00:00:00 2001
From: chbaeh <chbaeh@gmail.com>
Date: Thu, 4 Apr 2019 14:43:45 +0200
Subject: [PATCH] ODPSH-293: add error text

---
 ckanext/odsh/public/odsh.css                  | 22 ++++++++++++
 .../templates/error_document_template.html    | 34 +++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 ckanext/odsh/templates/error_document_template.html

diff --git a/ckanext/odsh/public/odsh.css b/ckanext/odsh/public/odsh.css
index a950af9f..f157229e 100644
--- a/ckanext/odsh/public/odsh.css
+++ b/ckanext/odsh/public/odsh.css
@@ -1919,4 +1919,26 @@ p.package-info-categorie
 .search-form a 
 {
     color: #003064;
+}
+
+.error-title
+{
+    color: #003064;
+    font-size: 40px;
+    margin-left: 10px;
+}
+
+.error-body
+{
+    color: black;
+    font-size: 18px;
+}
+.error-body h3
+{
+    font-size: 18px;
+    font-weight: 600;
+}
+
+.error-body a{
+    color: #003064;
 }
\ No newline at end of file
diff --git a/ckanext/odsh/templates/error_document_template.html b/ckanext/odsh/templates/error_document_template.html
new file mode 100644
index 00000000..724f3d3b
--- /dev/null
+++ b/ckanext/odsh/templates/error_document_template.html
@@ -0,0 +1,34 @@
+{% extends "page.html" %}
+
+{% block subtitle %}{{ gettext('Error %(error_code)s', error_code=c.code[0]) }}{% endblock %}
+
+{% block primary %}
+  <article class="module">
+    <div class="module-content error-page">
+        <div class="error-title">
+            HTTP Status {{ c.code[0]}}
+            {%if c.code[0]=='404'%}
+            <div class="error-body"><h2>Seite nicht gefunden</h2>
+                <h3>Wie finde ich die gesuchten Inhalte im Landesportal?</h3>
+
+                <p><a class="" href="http://www.schleswig-holstein.de/odpstart" title="Zur Startseite">Zur Startseite des Open-Data-Portals</a></p>
+
+                <h3>Kontakt</h3>
+                <p>Bei Fragen oder Problemen mit dem Open-Data-Portal schicken Sie bitte eine E-Mail an die Adresse opendata@lr.landsh.de oder verwenden das Kontaktformular:</p>
+                <p><a class="" href="https://www.schleswig-holstein.de/odpkontakt" title="Kontakt">Zum Kontaktformular</a></p>
+            </div>
+            {% endif %}
+        </div>
+    </div>
+  </article>
+{% endblock %}
+
+{% block breadcrumb %}
+{% endblock %}
+
+{% block flash %}
+  {# eat the flash messages caused by the 404 #}
+  {% set flash_messages = h.flash.pop_messages() %}
+{% endblock %}
+
+{% block secondary %}{% endblock %}
-- 
GitLab