Refactoring:
- Set dict values directly instead of creating a variable - Comment out unused route function entirely - Use f-strings for string interpolation - Move div inside if statement so empty divs are not printed
This commit is contained in:
@@ -124,11 +124,11 @@
|
||||
</td>
|
||||
<td class="toggle-menu__container">
|
||||
{% for perm, value in member.permission_sets.items() -%}
|
||||
<div>
|
||||
{% if value -%}
|
||||
{% if value -%}
|
||||
<div>
|
||||
{{ ("portfolios.admin.members.{}.{}".format(perm, value)) | translate }}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
{%- endif %}
|
||||
{%-endfor %}
|
||||
{% if user_can(permissions.EDIT_PORTFOLIO_USERS) -%}
|
||||
{% call ToggleMenu() %}
|
||||
|
Reference in New Issue
Block a user