File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/unfold/contrib/guardian/templates/unfold/guardian Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ <h2 class="font-semibold mb-3 text-font-important-light dark:text-font-important
3939 {% for perm in model_perms %}
4040 < td class ="align-middle flex border-t border-gray-200 font-normal px-3 py-2 text-left before:flex before:capitalize before:content-[attr(data-label)] before:items-center before:mr-auto first:border-t-0 lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-gray-800 " data-label ="{{ perm.name }} ">
4141 {% if perm.codename in group_perms %}
42- {% include "unfold/helpers/boolean.html" with value=False %}
43- {% else %}
4442 {% include "unfold/helpers/boolean.html" with value=True %}
43+ {% else %}
44+ {% include "unfold/helpers/boolean.html" with value=False %}
4545 {% endif %}
4646 </ td >
4747 {% endfor %}
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ <h2 class="font-semibold mb-3 text-font-important-light dark:text-font-important
3838
3939 {% for perm in model_perms %}
4040 < td class ="align-middle flex border-t border-gray-200 font-normal px-3 py-2 text-left before:flex before:capitalize before:content-[attr(data-label)] before:items-center before:mr-auto first:border-t-0 lg:before:hidden lg:first:border-t lg:py-3 lg:table-cell dark:border-gray-800 " data-label ="{{ perm.name }} ">
41- {% if perm.codename in group_perms %}
42- {% include "unfold/helpers/boolean.html" with value=False %}
43- {% else %}
41+ {% if perm.codename in user_perms %}
4442 {% include "unfold/helpers/boolean.html" with value=True %}
43+ {% else %}
44+ {% include "unfold/helpers/boolean.html" with value=False %}
4545 {% endif %}
4646 </ td >
4747 {% endfor %}
You can’t perform that action at this time.
0 commit comments