2017-09-04 13:34:01 +00:00
|
|
|
{% macro name(domain) %}
|
|
|
|
<a href="{{ url_for('domain', domain_name=domain.name) }}"><strong>{{ domain.name }}</strong></a>
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro dnssec(domain) %}
|
|
|
|
{% if domain.dnssec %}
|
2018-04-01 07:45:13 +00:00
|
|
|
<td><span class="label label-success"><i class="fa fa-lock-alt"></i> Enabled</span></td>
|
2017-09-04 13:34:01 +00:00
|
|
|
{% else %}
|
2018-04-01 07:45:13 +00:00
|
|
|
<td><span class="label label-primary"><i class="fa fa-unlock-alt"></i> Disabled</span></td>
|
2017-09-04 13:34:01 +00:00
|
|
|
{% 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 == '[]'%}N/A{% else %}{{ domain.master|display_master_name }}{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro actions(domain) %}
|
2018-03-31 01:21:02 +00:00
|
|
|
{% if current_user.role.name =='Administrator' %}
|
|
|
|
<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>
|
2017-09-04 13:34:01 +00:00
|
|
|
<button type="button" class="btn btn-flat btn-success" onclick="window.location.href='{{ url_for('domain', domain_name=domain.name) }}'">
|
|
|
|
Manage <i class="fa fa-cog"></i>
|
|
|
|
</button>
|
2018-03-31 01:21:02 +00:00
|
|
|
<button type="button" class="btn btn-flat btn-danger" onclick="window.location.href='{{ url_for('domain_management', domain_name=domain.name) }}'">
|
|
|
|
Admin <i class="fa fa-cog"></i>
|
|
|
|
</button>
|
2017-09-04 13:34:01 +00:00
|
|
|
</td>
|
|
|
|
{% else %}
|
2018-03-31 01:21:02 +00:00
|
|
|
<td width="6%">
|
2017-09-04 13:34:01 +00:00
|
|
|
<button type="button" class="btn btn-flat btn-success" onclick="window.location.href='{{ url_for('domain', domain_name=domain.name) }}'">
|
|
|
|
Manage <i class="fa fa-cog"></i>
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|