Revision ec06b07c ui/templates/list.html

b/ui/templates/list.html
18 18
        <a>Connect to network</a>
19 19
        <a>Disconnect from net</a>
20 20
    </div>
21
    <div class="active">
22
        {% for node in nodes %}
23
            {% if node.state == '3' %}
24
                <div class="running">
25
                    <label> 
26
                        <input type="checkbox" class="instance" id={{ node.id }} />
27
                        <img src="static/os_logos/{{ node.thumb }}" width="16" height="16" />
28
                        <span>{{ node.name }}</span> | 
29
                        <span>{{ node.public_ip }}</span> | 
30
                        group
31
                    </label>
32
                    <div class="state">Running</div>
33
                </div>
34
            {% endif %}
35
        {% endfor %}
21
    <div class="running">
22
        <div id="instance-template" style="display: none">
23
            <label> 
24
                <input type="checkbox" class="instance" id="node-id" />
25
                <img class="list-logo" src="static/os_logos/node.thumb" width="16" height="16" />
26
                <a class="name"><span class="name">node.name</span></a> | 
27
                <a class="ip"><span class="public">node.public_ip</span></a> | 
28
                group
29
            </label>
30
            <div class="status state">Running</div>
31
        </div>
36 32
    </div>
37 33
    <div id="mini" class="seperator"></div>
38
    <div class="inactive">
39
        {% for node in nodes %}
40
            {% if node.state == '0' %}
41
                <div class="stopped">
42
                    <label> 
43
                        <input type="checkbox" class="instance" id={{ node.id }} />
44
                        <img src="static/os_logos/{{ node.thumb }}" width="16" height="16" />
45
                        <span>{{ node.name }}</span> | 
46
                        <span>{{ node.public_ip }}</span> | 
47
                        group
48
                    </label>
49
                    <div class="state">Terminated</div>
50
                </div>
51
            {% endif %}
52
        {% endfor %}
34
    <div class="terminated">
53 35
    </div>
54 36
</div>

Also available in: Unified diff