diff --git a/app/views/add.twig b/app/views/add.twig index 76bd0a4..4008c2a 100644 --- a/app/views/add.twig +++ b/app/views/add.twig @@ -1,7 +1,21 @@ {% extends layout %} +{% block menu %} + + +{% endblock %} + {% block content %} +

{{ 'entry.add'|trans }}

+
{{ form_widget(form) }} diff --git a/app/views/archive.twig b/app/views/archive.twig index b0229dc..d6506c8 100644 --- a/app/views/archive.twig +++ b/app/views/archive.twig @@ -1,16 +1,19 @@ {% extends layout %} -{% block content %} +{% block menu %} {% set count = entries|length %} +{% endblock %} +{% block content %} {% if entries is empty %}

{{ 'No link available here!'|trans }}

{% else %} @@ -28,7 +31,6 @@ {% endfor %} -

{{ 'entry.add'|trans }}

{% endif %} diff --git a/app/views/index.twig b/app/views/index.twig index 0dcd2fc..f74a85d 100644 --- a/app/views/index.twig +++ b/app/views/index.twig @@ -1,6 +1,6 @@ {% extends layout %} -{% block content %} +{% block menu %} {% set count = entries|length %} +{% endblock %} +{% block content %} {% if entries is empty %}

{{ 'No link available here!'|trans }}

{% else %} diff --git a/app/views/layout.twig b/app/views/layout.twig index ab023ee..c5cb061 100644 --- a/app/views/layout.twig +++ b/app/views/layout.twig @@ -18,6 +18,7 @@ {% include '_top.twig' %}
+ {% block menu %}{% endblock %} {% block content %}{% endblock %}