mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 19:05:39 +00:00
Add button for admin page in single Domain view (#1076)
* Added button for admin page in domain overview
This commit is contained in:
parent
328780e2d4
commit
302e793665
5
powerdnsadmin/templates/domain.html
Normal file → Executable file
5
powerdnsadmin/templates/domain.html
Normal file → Executable file
@ -33,6 +33,11 @@
|
|||||||
Update from Master <i class="fa fa-download"></i>
|
Update from Master <i class="fa fa-download"></i>
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if current_user.role.name in ['Administrator', 'Operator'] %}
|
||||||
|
<button type="button" style="position: relative; margin-left: 20px" class="btn btn-flat btn-primary pull-left btn-danger" onclick="window.location.href='{{ url_for('domain.setting', domain_name=domain.name) }}'">
|
||||||
|
Admin <i class="fa fa-cog"></i>
|
||||||
|
</button>
|
||||||
|
{% endif %}
|
||||||
{% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %}
|
{% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %}
|
||||||
<button type="button" style="position: relative; margin-left: 20px" class="btn btn-flat btn-primary button_changelog" id="{{ domain.name }}">
|
<button type="button" style="position: relative; margin-left: 20px" class="btn btn-flat btn-primary button_changelog" id="{{ domain.name }}">
|
||||||
Changelog <i class="fa fa-history" aria-hidden="true"></i>
|
Changelog <i class="fa fa-history" aria-hidden="true"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user