diff --git a/trunk/app/Resources/TwigBundle/views/Exception/error.html.twig b/trunk/app/Resources/TwigBundle/views/Exception/error.html.twig new file mode 100644 index 00000000..11218964 --- /dev/null +++ b/trunk/app/Resources/TwigBundle/views/Exception/error.html.twig @@ -0,0 +1,7 @@ +{% extends get_base_template() %} + +{% block body %} +

Fehler

+ +
Es ist ein Fehler aufgetreten. Ihre Anfrage konnte nicht verarbeitet werden
+{% endblock %} \ No newline at end of file diff --git a/trunk/app/Resources/TwigBundle/views/Exception/error404.html.twig b/trunk/app/Resources/TwigBundle/views/Exception/error404.html.twig new file mode 100644 index 00000000..634f213f --- /dev/null +++ b/trunk/app/Resources/TwigBundle/views/Exception/error404.html.twig @@ -0,0 +1,19 @@ +{% extends get_base_template() %} + +{% block body %} +

Fehler 404

+

Leider konnte die von Ihnen angeforderte Seite nicht gefunden werden.

+

+ Bitte überprüfen Sie: +

+ + + +

+ Versuchen Sie ggf. die gewünschte Seite über unsere Homepage zu finden. +

+{% endblock body %} \ No newline at end of file diff --git a/trunk/app/Resources/views/base.html.twig b/trunk/app/Resources/views/base.html.twig index 7abd0b40..8566c684 100644 --- a/trunk/app/Resources/views/base.html.twig +++ b/trunk/app/Resources/views/base.html.twig @@ -1,4 +1,8 @@ +{% if app.debug -%} + +{%- endif %} + @@ -15,10 +19,19 @@ + {% block meta_description -%} + {%- if page is defined and page.description is not empty -%} + + {%- elseif app.debug -%} + + {%- endif -%} + {%- endblock %} + {% block meta_robots %} + + {% if app.debug %}{% endif %} + {% endblock %} {% endblock %} - STERNTOURS - @@ -26,18 +39,22 @@ {% block canonical_tag %} - {% block canonical_url %} - {% if canonical_url is not defined and page is defined %} - {% if page.canonicalUrl is not empty %} - {% set canonical_url = (page.canonicalUrl starts with '/' ? get_base_url()) ~ page.canonicalUrl %} - {% else %} - {% set canonical_url = get_base_url() ~ page.urlPath %} - {% endif %} + {% if canonical_url is not defined and page is defined %} + {% if page.canonicalUrl is not empty %} + {% set canonical_url = (page.canonicalUrl starts with '/' ? get_base_url()) ~ page.canonicalUrl %} + {% if app.debug %}{% endif %} + {% else %} + {% set canonical_url = get_base_url() ~ page.urlPath %} + {% if app.debug %}{% endif %} {% endif %} - {% endblock %} + {% elseif app.debug and canonical_url is defined %} + + {% endif %} {% if canonical_url is defined %} + {% elseif app.debug %} + {% endif %} {% endblock %} diff --git a/trunk/app/Resources/views/default/components/footer.html.twig b/trunk/app/Resources/views/default/components/footer.html.twig index c19572aa..f474ac29 100644 --- a/trunk/app/Resources/views/default/components/footer.html.twig +++ b/trunk/app/Resources/views/default/components/footer.html.twig @@ -15,9 +15,9 @@
@@ -119,6 +119,7 @@