Revision b058f1fe snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates/snfElem.hbs
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates/snfElem.hbs | ||
---|---|---|
1 |
<!-- the conditionals here define the structure of output and they are not involved with the origin of the displayed data --> |
|
2 |
|
|
1 | 3 |
{{#unless view.addNewBtn}} |
2 |
{{view Okeanos.ElementSidebarView}}
|
|
4 |
{{partial "elementSidebar"}}
|
|
3 | 5 |
{{/unless}} |
4 | 6 |
<div class="container"> |
5 | 7 |
{{#if view.selectable}} |
6 |
{{snf-checkbox initState=view.initSelect elementID=id}} |
|
7 |
{{/if}} |
|
8 |
{{view Okeanos.ImgWrapView}} |
|
9 |
{{#if view.addNewBtn}} |
|
10 |
<h4>{{view.name}}</h4> |
|
11 |
{{else}} |
|
12 |
<h4>{{name}}</h4> |
|
13 |
<div class="actions"> |
|
14 |
<a href="" data-reveal-id="vm-connect" data-tooltip title="connect" class="connect has-tip"><span class="snf-thunder-full"></span></a> |
|
15 |
<a href="vm_details.html" data-tooltip title="view vm details" class="snf-info-outline has-tip">i</a> |
|
16 |
</div> |
|
17 |
{{#if parentController.hasTags}} |
|
18 |
<div class="tags">tags</div> |
|
19 |
{{/if}} |
|
20 |
<div class= "status"> |
|
21 |
<span class="state">{{view.status}}</span> |
|
22 |
<span class="logs">logs</span> |
|
23 |
</div> |
|
24 |
<div class="info"><a {{bind-attr href=hostname}} title="">{{hostname}}</a></div> |
|
25 |
</div> |
|
8 |
{{snf-checkbox initState=view.initSelect}} |
|
26 | 9 |
{{/if}} |
10 |
{{view Synnefo.ImgWrapView}} |
|
11 |
{{view Synnefo.NameView}} |
|
12 |
{{#unless view.addNewBtn}} |
|
13 |
<!-- actions will be different for every kind of models (vms <> nets <> volumes) --> |
|
14 |
<!-- for now: view (should be a collection of components=btn2: btns with only icon?) --> |
|
15 |
{{view Synnefo.ImmediateActionView}} |
|
16 |
{{partial "extraElemInfo"}} |
|
17 |
{{/unless}} |
|
18 |
</div> |
Also available in: Unified diff