rubick/ostack_validator/templates/validation_result.html

66 lines
1.6 KiB
HTML

{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}OpenStack Validator Result{% endblock %}
{% block content %}
<div class="container">
<h1>OpenStack Validation Result</h1>
<h2>Hosts</h2>
<ul>
{% for host in openstack.hosts %}
<li>
<span class="node-name">{{ host.name }}</span>
<ul>
{% for component in host.components %}
<li>{{ component.name }} version {{ component.version }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<h2>Issues</h2>
<ul>
{% for group, issues in grouped_issues %}
<li>
<span>
{% if group %}
{{ group }}
{% else %}
General issues
{% endif %}
</span>
<ul>
{% for issue in issues %}
<li>
<span class="label {{ issue.type | to_label }}">{{ issue.type | capitalize }}</span>
{{ issue.message }}
{% if issue.mark %}
(line {{ issue.mark.line+1 }} column {{ issue.mark.column+1 }})
{% endif %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
<form action="/validation" method="POST">
<div style="display: none">
{{ form.hidden_tag() }}
{{ wtf.form_field(form.nodes) }}
{{ wtf.form_field(form.username) }}
{{ wtf.form_field(form.private_key) }}
</div>
<button type="submit" class="btn btn-info">Re-run inspection</button>
<a class="btn btn-default" href="/validation">New inspection</a>
</form>
</div>
{% endblock %}