mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
1332c8d29d
Co-authored-by: Konstantinos Kouris <85997752+konkourgr@users.noreply.github.com> Co-authored-by: vmarkop <billy.mark.b.m.10@gmail.com> Co-authored-by: KostasMparmparousis <mparmparousis.kostas@gmail.com> Co-authored-by: dimpapac <demispapa@gmail.com>
60 lines
2.6 KiB
HTML
60 lines
2.6 KiB
HTML
{% macro name(domain) %}
|
|
<a href="{{ url_for('domain.domain', domain_name=domain.name) }}"><strong>{{ domain.name | pretty_domain_name }}</strong></a>
|
|
{% endmacro %}
|
|
|
|
{% macro dnssec(domain) %}
|
|
{% if domain.dnssec %}
|
|
<td><span style="cursor:pointer" class="label label-success button_dnssec" id="{{ domain.name }}"><i class="fa fa-lock"></i> Enabled</span></td>
|
|
{% else %}
|
|
<td><span style="cursor:pointer" class="label label-primary button_dnssec" id="{{ domain.name }}"><i class="fa fa-unlock-alt"></i> Disabled</span></td>
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro type(domain) %}
|
|
{{ domain.type }}
|
|
{% endmacro %}
|
|
|
|
{% macro serial(domain) %}
|
|
{% if domain.serial == '0' %}{{ domain.notified_serial }}{% else %}{{ domain.serial }}{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro master(domain) %}
|
|
{% if domain.master == '[]'%}-{% 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 '-' }}
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro actions(domain) %}
|
|
{% if current_user.role.name in ['Administrator', 'Operator'] %}
|
|
<td width="25%">
|
|
<button type="button" class="btn btn-flat btn-success button_template" id="{{ domain.name }}">
|
|
Template <i class="fa fa-clone"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-flat btn-success" onclick="window.location.href='{{ url_for('domain.domain', domain_name=domain.name) }}'">
|
|
Manage <i class="fa fa-cog"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-flat btn-danger" onclick="window.location.href='{{ url_for('domain.setting', domain_name=domain.name) }}'">
|
|
Admin <i class="fa fa-cog"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-flat btn-primary" onclick="window.location.href='{{ url_for('domain.changelog', domain_name=domain.name) }}'">
|
|
Changelog <i class="fa fa-history" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
{% else %}
|
|
<td width="6%">
|
|
<button type="button" class="btn btn-flat btn-success" onclick="window.location.href='{{ url_for('domain.domain', domain_name=domain.name) }}'">
|
|
Manage <i class="fa fa-cog"></i>
|
|
</button>
|
|
{% if allow_user_view_history %}
|
|
<button type="button" class="btn btn-flat btn-primary" onclick="window.location.href='{{ url_for('domain.changelog', domain_name=domain.name) }}'">
|
|
Changelog <i class="fa fa-history" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
{% endmacro %}
|