mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-02-02 01:54:13 +00:00
add poster settings to the user profile page
This commit is contained in:
parent
7796aba342
commit
ad5b075878
@ -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(),
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user