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
'moderator' => $userTarget->isModerator(), 'moderator' => $userTarget->isModerator(),
'approved' => $userTarget->isApproved(), 'approved' => $userTarget->isApproved(),
'status' => $userTarget->isStatus(), 'status' => $userTarget->isStatus(),
'posters' => $userTarget->isPosters(),
'sensitive' => $userTarget->isSensitive(), 'sensitive' => $userTarget->isSensitive(),
'yggdrasil' => $userTarget->isYggdrasil(), 'yggdrasil' => $userTarget->isYggdrasil(),
'locale' => $userTarget->getLocale(), 'locale' => $userTarget->getLocale(),

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

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

Loading…
Cancel
Save