2015-07-16 15:24:20 +02:00
|
|
|
|
{% extends "layout/default.html" %}
|
|
|
|
|
{% block body %}
|
|
|
|
|
<div class="jumbotron">
|
|
|
|
|
<h1>{{ device["name"] }}</h1>
|
2015-07-30 09:41:17 +02:00
|
|
|
|
Category {{ device["category"] }}<br />
|
|
|
|
|
Product: <a href="{{ device["product_url"] }}">{{ device["product_name"] }}</a><br />
|
|
|
|
|
Vendor: <a href="{{ device["vendor_url"] }}">{{ device["vendor_name"] }}</a><br />
|
|
|
|
|
Documentation: <a href="{{ device["documentation_url"] }}">{{ device["documentation_url"] }}</a><br />
|
|
|
|
|
Status: {{ device["status"] }}<br />
|
|
|
|
|
Maintainer: <a href="mailto:{{ device["maintainer_email"] }}">{{ device["maintainer"] }}</a>
|
2015-07-16 15:24:20 +02:00
|
|
|
|
</div>
|
2015-07-30 09:41:17 +02:00
|
|
|
|
{% if "qemu" in device %}
|
|
|
|
|
<h2>Qemu settings</h2>
|
|
|
|
|
{% for key in device["qemu"] %}
|
|
|
|
|
{{ key }}: {{ device["qemu"][key] }}<br />
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
2015-08-04 17:10:04 +02:00
|
|
|
|
{% for version in device["versions"] | reverse %}
|
|
|
|
|
<h2>{{ device["name"] }} {{version["name"]}}</h2>
|
2015-08-05 15:49:23 +02:00
|
|
|
|
<button class="btn btn-primary btn-lg" type="button" onclick='gns3.install("{{device|jsonify|b64encode}}", "{{version["name"]}}")'>Install</button>
|
2015-08-04 17:10:04 +02:00
|
|
|
|
<h3>Require files</h3>
|
|
|
|
|
{% for image in version.images.values() %}
|
|
|
|
|
<h4>{{image["filename"]}}</h4>
|
|
|
|
|
Slot: {{image["type"]}}<br />
|
|
|
|
|
File Version: {{image["version"]}}<br />
|
2015-07-30 09:41:17 +02:00
|
|
|
|
Checksum: {{image["md5sum"]}}<br />
|
|
|
|
|
Download url: <a href="{{image["download_url"]}}">{{image["download_url"]}}</a><br />
|
|
|
|
|
{% if "direct_download_url" in image %}
|
|
|
|
|
Direct download url: <a href="{{image["direct_download_url"]}}">{{image["direct_download_url"]}}</a><br />
|
2015-08-05 15:49:23 +02:00
|
|
|
|
<button class="btn btn-primary btn-lg" type="button" onclick='gns3.download("{{device|jsonify|b64encode}}", "{{image["md5sum"]}}")'>Download</button>
|
2015-07-30 09:41:17 +02:00
|
|
|
|
{% endif %}
|
2015-08-04 17:10:04 +02:00
|
|
|
|
<hr />
|
2015-07-30 09:41:17 +02:00
|
|
|
|
{% endfor %}
|
2015-07-16 15:24:20 +02:00
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endblock %}
|