ikiwiki: Implement diagnostics

This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2015-08-29 06:22:02 -04:00
1 parent 20d8c56aa0
commit 3f9bcafeeb
2 files changed
+14

No files matched your search

+10
View File
@@ -47,3 +47,13 @@ def init():
def is_enabled():
"""Return whether the module is enabled."""
return action_utils.webserver_is_enabled('ikiwiki-plinth')
def diagnose():
"""Run diagnostics and return the results."""
results = []
results.extend(action_utils.diagnose_url_on_all(
'https://{host}/ikiwiki', extra_options=['--no-check-certificate']))
return results
@@ -25,6 +25,10 @@
<p>When enabled, the blogs and wikis will be available
from <a href="/ikiwiki">/ikiwiki</a>.</p>
{% include "diagnostics_button.html" with module="ikiwiki" %}
<h3>Configuration</h3>
<form class="form" method="post">
{% csrf_token %}