mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-16 04:56:05 +00:00
Added Jinja filter for handle formatting of zone type labels to enforce modern social standards.
Removed text label of dashboard domain list action menu to reduce size. Continuing work on re-design and clean-up of dashboard view.
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% macro type(domain) %}
|
||||
{{ domain.type }}
|
||||
{{ domain.type | format_zone_type }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro serial(domain) %}
|
||||
@ -19,12 +19,12 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% macro master(domain) %}
|
||||
{% if domain.master == '[]'%}-{% else %}{{ domain.master | display_master_name }}{% endif %}
|
||||
{% if domain.master == '[]'%}N/A{% else %}{{ domain.master | display_master_name }}{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro account(domain) %}
|
||||
{% if current_user.role.name in ['Administrator', 'Operator'] %}
|
||||
{{ domain.account.name if domain.account else '-' }}
|
||||
{{ domain.account.name if domain.account else 'None' }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<td width="6%">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa-solid fa-bars"></i> Actions
|
||||
<i class="fa-solid fa-bars"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenu">
|
||||
{% if current_user.role.name in ['Administrator', 'Operator'] %}
|
||||
|
Reference in New Issue
Block a user