Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDNS_VERSION enablednssec #614

Closed
jsm222 opened this issue Dec 19, 2019 · 1 comment
Closed

PDNS_VERSION enablednssec #614

jsm222 opened this issue Dec 19, 2019 · 1 comment
Labels
bug / broken-feature Existing feature malfunctioning or broken

Comments

@jsm222
Copy link

jsm222 commented Dec 19, 2019

diff --git a/powerdnsadmin/routes/dashboard.py b/powerdnsadmin/routes/dashboard.py
index e04c6de..79ff93c 100644
--- a/powerdnsadmin/routes/dashboard.py
+++ b/powerdnsadmin/routes/dashboard.py
@@ -172,7 +172,9 @@ def dashboard():
                            history_number=history_number,
                            uptime=uptime,
                            histories=history,
-                           show_bg_domain_button=BG_DOMAIN_UPDATE)
+                           show_bg_domain_button=BG_DOMAIN_UPDATE,
+                           pdns_version=Setting().get('pdns_version')
+                           )
 
 
 @dashboard_bp.route('/domains-updater', methods=['GET', 'POST'])
diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html
index 4d9ad6c..d0d8a44 100644
--- a/powerdnsadmin/templates/base.html
+++ b/powerdnsadmin/templates/base.html
@@ -171,6 +171,9 @@
 <script type="text/javascript">
   $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
 </script>
+	<script type="text/javascript">
+		var PDNS_VERSION = '{{ pdns_version }}'
+	</script>
 {% block scripts %}
 {% assets "js_main" -%}
   <script type="text/javascript" src="{{ ASSET_URL }}"></script>
@ngoduykhanh
Copy link
Contributor

Nice catch! I didn't know that I broke it. Thanks for reporting. I submit a fix in the above commit.

@ngoduykhanh ngoduykhanh added the bug / broken-feature Existing feature malfunctioning or broken label Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / broken-feature Existing feature malfunctioning or broken
Projects
None yet
Development

No branches or pull requests

2 participants