mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 09:05:43 +00:00
add poster settings to the user profile page
This commit is contained in:
parent
7796aba342
commit
ad5b075878
2 changed files with 13 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue