Note not found
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h1>Note</h1>
|
||||
<time>{{ note.getPublishedDate().format('c') }}
|
||||
<p>{{ note.content }}</p>
|
||||
</section>
|
||||
{% if note %}
|
||||
<section>
|
||||
<h1>Note {{ note.slug }}</h1>
|
||||
<time>{{ note.publishedDate.format('c') }}
|
||||
<p>{{ note.content }}</p>
|
||||
</section>
|
||||
{% else %}
|
||||
<section>
|
||||
<h1>Note not found</h1>
|
||||
<p>I don't have a note '{{ slug }}'.</p>
|
||||
<p>Go back to <a href="/notes">Notes</a>.</p>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user