powerdns-admin/powerdnsadmin/templates/dashboard_domain.html

60 lines
2.6 KiB
HTML
Raw Normal View History

2017-09-04 13:34:01 +00:00
{% macro name(domain) %}
2021-03-16 18:37:05 +00:00
<a href="{{ url_for('domain.domain', domain_name=domain.name) }}"><strong>{{ domain.name | pretty_domain_name }}</strong></a>
2017-09-04 13:34:01 +00:00
{% endmacro %}
{% macro dnssec(domain) %}
{% if domain.dnssec %}
2018-04-02 06:38:53 +00:00
<td><span style="cursor:pointer" class="label label-success button_dnssec" id="{{ domain.name }}"><i class="fa fa-lock"></i>&nbsp;Enabled</span></td>
2017-09-04 13:34:01 +00:00
{% else %}
2018-04-02 06:38:53 +00:00
<td><span style="cursor:pointer" class="label label-primary button_dnssec" id="{{ domain.name }}"><i class="fa fa-unlock-alt"></i>&nbsp;Disabled</span></td>
2017-09-04 13:34:01 +00:00
{% endif %}
{% endmacro %}
{% macro type(domain) %}
{{ domain.type }}
{% endmacro %}
{% macro serial(domain) %}
2021-06-04 13:24:49 +00:00
{% if domain.serial == '0' %}{{ domain.notified_serial }}{% else %}{{ domain.serial }}{% endif %}
2017-09-04 13:34:01 +00:00
{% endmacro %}
{% macro master(domain) %}
2021-03-16 18:37:05 +00:00
{% if domain.master == '[]'%}-{% else %}{{ domain.master | display_master_name }}{% endif %}
2017-09-04 13:34:01 +00:00
{% endmacro %}
{% macro account(domain) %}
2018-08-31 04:57:06 +00:00
{% if current_user.role.name in ['Administrator', 'Operator'] %}
2019-12-17 06:34:52 +00:00
{{ domain.account.name if domain.account else '-' }}
{% endif %}
{% endmacro %}
2017-09-04 13:34:01 +00:00
{% macro actions(domain) %}
2018-08-31 04:57:06 +00:00
{% 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&nbsp;<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) }}'">
2017-09-04 13:34:01 +00:00
Manage&nbsp;<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&nbsp;<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&nbsp;<i class="fa fa-history" aria-hidden="true"></i>
</button>
2017-09-04 13:34:01 +00:00
</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) }}'">
2017-09-04 13:34:01 +00:00
Manage&nbsp;<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&nbsp;<i class="fa fa-history" aria-hidden="true"></i>
</button>
{% endif %}
2017-09-04 13:34:01 +00:00
</td>
{% endif %}
2017-09-04 13:34:01 +00:00
{% endmacro %}