aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/resource/hostprofile_detail.html
blob: 1cf20004664fdf66f2e723dfecf0492ffed6353b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{% extends "base.html" %}
{% load staticfiles %}

{% block content %}
<h1>{{ flavor.name }}</h1>
<div class="row">
    <div class="col-lg-6">
        <div class="card mb-4">
            <div class="card-header d-flex">
                <h4 class="d-inline">Available at</h4>
            </div>
            <div class="collapse show" id="availableAt">
                <ul class="list-group list-group-flush">
                    <li class="list-group-item">UNH IOL</li>
                </ul>
            </div>
        </div>
        <div class="card mb-4">
            <div class="card-header d-flex">
                <h4 class="d-inline">RAM</h4>
            </div>
            <div id="ramPanel" class="collapse show">
                <div class="card-body">
                    {{flavor.ram.value}} {{flavor.ram.unit}}
                </div>
            </div>
        </div>
        <div class="card mb-4">
            <div class="card-header d-flex">
                <h4 class="d-inline">CPU</h4>
            </div>
            <div class="collapse show" id="cpuPanel">
                <table class="table">
                    <tr>
                        <td>Arch:</td>
                        <td>{{ flavor.arch }}</td>
                    </tr>
                    <tr>
                        <td>Cores:</td>
                        <td>{{ flavor.cpu_count }}</td>
                    </tr>
                    <tr>
                        <td>Sockets:</td>
                        <td>{{ flavor.sockets }}</td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="card mb-4">
            <div class="card-header d-flex">
                <h4 class="d-inline">Disk</h4>
            </div>
            <div class="collapse show" id="diskPanel">
                <table class="table">
                    <tr>
                        <td>Disk Size:</td>
                        <td>{{flavor.disk_size.value}} {{flavor.disk_size.unit}}</td>
                    </tr>
                    <tr>
                        <td>Root Size:</td>
                        <td>{{flavor.root_size.value}} {{flavor.root_size.unit}}</td>
                    </tr>
                    <tr>
                        <td>Swap Size:</td>
                        <td>{{flavor.swap_size.value}} {{flavor.swap_size.unit}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="card mb-4">
            <div class="card-header d-flex">
                <h4 class="d-inline">Interfaces</h4>
            </div>
            <div class="collapse show" id="interfacePanel">
                <table class="table">
                    <thead>
                        <tr>
                            <th>Name</th>
                            <th>Speed</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for interface in flavor.interfaces %}
                        <tr>
                            <td>{{interface.name}}</td>
                            <td>{{interface.speed.value}} {{interface.speed.unit}}</td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
                <div class="card">
            <div class="card-header d-flex">
                <h4 class="d-inline">Images</h4>
            </div>
            <div class="collapse show" id="interfacePanel">
                <table class="table">
                    <thead>
                        <tr>
                            <th>Name</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for image in flavor.images %}
                        <tr>
                            <td>{{image.name}}</td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{% endblock content %}