This repository has been archived by the owner on May 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref #23: Create page to display a strip to the public. Unclean at the…
… moment, mainly usefull to work on frontend.
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block body %} | ||
<h1>{{ strip.title }}</h1> | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
{# TODO : do something clean #} | ||
<th>Stripelements</th> | ||
{% for stripElement in strip.stripElements %} | ||
<td> | ||
<img src="{{ app.request.scheme ~ '://' ~ app.request.host ~ ':8000/images/strips/' ~ stripElement }}"/> | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
<tr> | ||
<th>Publicationdate</th> | ||
<td>{% if strip.publicationDate %}{{ strip.publicationDate|date('Y-m-d H:i:s') }}{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<th>Content Warnings</th> | ||
<td> | ||
{% for contentWarning in strip.contentWarnings%} | ||
<a href="{{ path('contentwarning_show', { 'slug': contentWarning.slug }) }}">{{ contentWarning.slug }}</a> | ||
{% endfor %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Author</th> | ||
<td> | ||
{% for account in strip.author%} | ||
<a href="{{ path('acount_show', { 'slug': account.slug }) }}">{{ account.slug }}</a> | ||
{% endfor %} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters