jun 3
This commit is contained in:
@@ -12,6 +12,15 @@
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="{{ path('homepage') }}">Guestbook</a></h1>
|
||||
<ul>
|
||||
{% for conference in conferences %}
|
||||
<li><a href="{{ path('conference', { slug: conference.slug }) }}">{{ conference }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<hr />
|
||||
</header>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{% for conference in conferences %}
|
||||
<h4>{{ conference }}</h4>
|
||||
<p>
|
||||
<a href="{{ path('conference', { id: conference.id }) }}">View</a>
|
||||
<a href="{{ path('conference', { slug: conference.slug }) }}">View</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -20,12 +20,15 @@
|
||||
<p>{{ comment.text }}</p>
|
||||
{% endfor %}
|
||||
{% if previous >= 0 %}
|
||||
<a href="{{ path('conference', { id: conference.id, offset: previous }) }}">Previous</a>
|
||||
<a href="{{ path('conference', { slug: conference.slug, offset: previous }) }}">Previous</a>
|
||||
{% endif %}
|
||||
{% if next < comments|length %}
|
||||
<a href="{{ path('conference', { id: conference.id, offset: next }) }}">Next</a>
|
||||
<a href="{{ path('conference', { slug: conference.slug, offset: next }) }}">Next</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div>No comments have been posted yet for this conference.</div>
|
||||
{% endif %}
|
||||
<h2>Add your own feedback</h2>
|
||||
|
||||
{{ form(comment_form) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user