Revision f73915d9 ui/src/synnefo/templates/instances.pt

b/ui/src/synnefo/templates/instances.pt
1

  
2 1
<a id="create" rel="#wizard" href="#">Create New +</a>
3 2

  
4
<div class="instance running" tal:repeat="node nodes">
3
<div id="instancesview">
4
    <a id="list" href="/instances/list">list view</a>
5
    <div class="instance running" tal:repeat="node nodes">
5 6

  
6
    <div class="actions">
7
        <a href="#" class="action">reboot</a>
8
        <a href="#" class="action">shutdown</a>
9
        <a href="#" class="more">more &hellip;</a>
10
    </div>
11
    
12
    <div class="state">
13
        <div>Running</div>
14
        <div class="indicator" />
15
        <div class="indicator" />
16
        <div class="indicator" />
17
        <div class="indicator" />
18
        <div class="uptime">24 days uptime</div>
19
    </div>
7
        <div class="actions">
8
            <a href="#" class="action">reboot</a>
9
            <a href="#" class="action">shutdown</a>
10
            <a href="#" class="more">more &hellip;</a>
11
        </div>
12
        
13
        <div class="state">
14
            <div>Running</div>
15
            <div class="indicator" />
16
            <div class="indicator" />
17
            <div class="indicator" />
18
            <div class="indicator" />
19
            <div class="uptime">24 days uptime</div>
20
        </div>
20 21

  
21
    <img src="static/server.png" />
22
    <a href="#" class="name">
23
        <h3> <span tal:replace="node['name']" /><span class="rename">(rename)</span></h3>
24
    </a>
25
    <a href="#" class="ip">
26
        <h5><span tal:replace="node['public_ip']" /><span class="configure">(configure networking)</span></h5>
27
    </a>
28
    <a href="#" class="storage">
29
        <h5>34GB of total storage in 3 volumes <span class="configure">(configure storage)</span></h5>
30
    </a>
22
        <img src="static/server.png" />
23
        <a href="#" class="name">
24
            <h3> <span tal:replace="node['name']" /><span class="rename">(rename)</span></h3>
25
        </a>
26
        <a href="#" class="ip">
27
            <h5><span tal:replace="node['public_ip']" /><span class="configure">(configure networking)</span></h5>
28
        </a>
29
        <a href="#" class="storage">
30
            <h5>34GB of total storage in 3 volumes <span class="configure">(configure storage)</span></h5>
31
        </a>
32
    </div>
31 33
</div>
32 34

  
33 35
<!-- the form -->
......
167 169
<script>
168 170
// <![CDATA[ 
169 171

  
172
$("#list").click(function(event){
173
    $("div#instancesview").load($("#list").attr("href"));
174
    return false;
175
});
176

  
170 177
$("ul.tabs").tabs("div.panes ul");
171 178

  
172 179
$(":range").rangeinput();

Also available in: Unified diff