We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32e8705 commit f5ffbb0Copy full SHA for f5ffbb0
controlpanel/frontend/jinja2/includes/datasource-list.html
@@ -36,11 +36,15 @@
36
Webapp
37
{%- endif -%}
38
{%- else -%}
39
- {% if datasource.access_level(user).lower() == 'readwrite' -%}
40
- Read/write
41
- {%- else -%}
42
- Read only
43
- {%- endif %}
+ {% with access_level = datasource.access_level(user).lower() -%}
+ {% if access_level == 'admin' -%}
+ Admin
+ {%- elif access_level == 'readwrite' -%}
+ Read/write
44
+ {%- else -%}
45
+ Read only
46
+ {%- endif %}
47
+ {%- endwith %}
48
49
</td>
50
<td class="govuk-table__cell align-right no-wrap">
0 commit comments