Browse Source

add poster settings to the user profile page

main
ghost 1 year ago
parent
commit
ad5b075878
  1. 1
      src/Controller/UserController.php
  2. 12
      templates/default/user/info.html.twig

1
src/Controller/UserController.php

@ -222,6 +222,7 @@ class UserController extends AbstractController @@ -222,6 +222,7 @@ class UserController extends AbstractController
'moderator' => $userTarget->isModerator(),
'approved' => $userTarget->isApproved(),
'status' => $userTarget->isStatus(),
'posters' => $userTarget->isPosters(),
'sensitive' => $userTarget->isSensitive(),
'yggdrasil' => $userTarget->isYggdrasil(),
'locale' => $userTarget->getLocale(),

12
templates/default/user/info.html.twig

@ -175,6 +175,18 @@ @@ -175,6 +175,18 @@
{% for i, locale in user.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
</td>
</tr>
<tr>
<td>
{{ 'Posters' | trans }}
</td>
<td>
{% if user.posters %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
</td>
</tr>
<tr>
<td>
{{ 'Sensitive' | trans }}

Loading…
Cancel
Save