aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-04-20 16:19:14 +0200
committerneodarz <neodarz@neodarz.net>2018-04-20 16:19:14 +0200
commit657d293e0213d699c3e3cbf8d482886758864a7b (patch)
tree20332e760c0dc0b77c5bad0ad6822da9a25c8cef
parente8291eb807e08ec5a639dd4f4e6935445cc609f5 (diff)
downloadfilmManager-657d293e0213d699c3e3cbf8d482886758864a7b.zip
filmManager-657d293e0213d699c3e3cbf8d482886758864a7b.tar.xz
Add anonymous for uploader info when not logged in
-rw-r--r--app/Resources/views/film/index.html.twig8
-rw-r--r--app/Resources/views/film/show.html.twig8
2 files changed, 14 insertions, 2 deletions
diff --git a/app/Resources/views/film/index.html.twig b/app/Resources/views/film/index.html.twig
index b886e3c..ea3f05e 100644
--- a/app/Resources/views/film/index.html.twig
+++ b/app/Resources/views/film/index.html.twig
@@ -35,7 +35,13 @@
</li>
</ul>
</td>
- <td>{{ film.user }}</td>
+ <td>
+ {% if film.user %}
+ {{ film.user }}
+ {% else %}
+ Anonymous
+ {% endif %}
+ </td>
</tr>
{% endfor %}
</tbody>
diff --git a/app/Resources/views/film/show.html.twig b/app/Resources/views/film/show.html.twig
index 18b4b65..986389b 100644
--- a/app/Resources/views/film/show.html.twig
+++ b/app/Resources/views/film/show.html.twig
@@ -39,7 +39,13 @@
</td>
<tr>
<th>Uploader</th>
- <td>{{ film.user }}</td>
+ <td>
+ {% if film.user %}
+ {{ film.user }}
+ {% else %}
+ Anonymous
+ {% endif %}
+ </td>
</tr>
</tbody>
</table>