Build user interface prototype
This commit is contained in:
24
templates/conference/show.html.twig
Normal file
24
templates/conference/show.html.twig
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Conference Guestbook - {{ conference }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h2>{{ conference }} Conference<h2>
|
||||
|
||||
{% if comments|length > 0 %}
|
||||
{% for comment in comments %}
|
||||
{% if comment.photoFilename %}
|
||||
<img src="{{ asset('uploads/photos/' ~ comment.photofilename) }}" style="max-width: 200px"/>
|
||||
{% endif %}
|
||||
|
||||
<h4>{{ comment.author }}</h4>
|
||||
<small>
|
||||
{{ comment.createdAt|format_datetime('medium', 'short') }}
|
||||
</small>
|
||||
|
||||
<p>{{ comment.text }}</p>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div>No comments have been posted yet for this conference.</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user