Skip to content

Commit fdb679e

Browse files
authored
fix: no apps permissions design (#1363)
1 parent 20445fc commit fdb679e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/unfold/templates/admin/app_list.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,8 @@ <h3 class="font-medium my-2 text-base-900 text-sm dark:text-base-200">
4444
{% endfor %}
4545
</div>
4646
{% else %}
47-
<p>{% translate 'You don’t have permission to view or edit anything.' %}</p>
47+
<p>
48+
{% trans "You don’t have permission to view or edit anything." as error_message %}
49+
{% include "unfold/helpers/messages/error.html" with error=error_message %}
50+
</p>
4851
{% endif %}

src/unfold/templates/unfold/helpers/app_list.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,8 @@ <h2 class="mb-4 font-semibold text-font-important-light truncate dark:text-font-
9595
</div>
9696
{% endif %}
9797
{% else %}
98-
<p>{% translate "You don’t have permission to view or edit anything." %}</p>
98+
<p>
99+
{% trans "You don’t have permission to view or edit anything." as error_message %}
100+
{% include "unfold/helpers/messages/error.html" with error=error_message %}
101+
</p>
99102
{% endif %}

src/unfold/templates/unfold/helpers/app_list_default.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
{% endfor %}
5757
{% else %}
5858
<p>
59-
{% translate 'You don’t have permission to view or edit anything.' %}
59+
{% trans "You don’t have permission to view or edit anything." as error_message %}
60+
{% include "unfold/helpers/messages/error.html" with error=error_message %}
6061
</p>
6162
{% endif %}

0 commit comments

Comments
 (0)