Revision b3523ce4 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js | ||
---|---|---|
32 | 32 |
|
33 | 33 |
function program1(depth0,data) { |
34 | 34 |
|
35 |
var buffer = '', stack1; |
|
36 |
data.buffer.push("\n<ul class=\"side-actions\">\n <li>\n <a href=\"vm_details.html\" data-tooltip title=\"view details\" class=\"details has-tip\">i</a>\n </li>\n <li>\n <a href=\"#\" title=\"connect to machine\" data-tooltip data-reveal-id=\"vm-connect\" class=\"has-tip\">\n <span class=\"snf-thunder-full\"></span>\n </a>\n </li>\n <li class=\"more-actions\">\n <a href=\"#\" title=\"\">...</a>\n <ul class=\"many\">\n "); |
|
37 |
stack1 = helpers.each.call(depth0, "setAvailableActions", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(2, program2, data),contexts:[depth0],types:["ID"],data:data}); |
|
38 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
39 |
data.buffer.push("\n </ul>\n </li>\n <li class=\"bottom\">\n <a href=\"\" title=\"\"><span></span></a>\n <ul class=\"options\">\n <li class=\"selected\"><a href=\"\">My awesome project</a></li>\n <li><a href=\"\">Project 1</a></li>\n <li><a href=\"\">Project 2</a></li>\n <li><a href=\"\">Project 3</a></li>\n <li><a href=\"\">Project 4</a></li>\n </ul>\n <ul>\n <li>My awesome project</li>\n <li><a href=\"\" class=\"reassign\">Reassign<span class=\"arrow-right\"></span></a></li>\n </ul>\n </li>\n </ul>\n "); |
|
40 |
return buffer; |
|
41 |
} |
|
42 |
function program2(depth0,data) { |
|
43 |
|
|
35 | 44 |
var buffer = '', helper, options; |
36 | 45 |
data.buffer.push("\n <li>\n "); |
37 | 46 |
data.buffer.push(escapeExpression((helper = helpers['actionBtns-simple'] || (depth0 && depth0['actionBtns-simple']),options={hash:{ |
... | ... | |
44 | 53 |
return buffer; |
45 | 54 |
} |
46 | 55 |
|
47 |
function program3(depth0,data) { |
|
56 |
function program4(depth0,data) { |
|
57 |
|
|
58 |
|
|
59 |
data.buffer.push("\n <span class=\"snf-checkbox-unchecked\"></span>\n "); |
|
60 |
} |
|
61 |
|
|
62 |
function program6(depth0,data) { |
|
48 | 63 |
|
49 | 64 |
var buffer = ''; |
50 |
data.buffer.push("\n <span ");
|
|
65 |
data.buffer.push("\n <span "); |
|
51 | 66 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
52 |
'class': ("os :os")
|
|
67 |
'class': ("view.icon :snf-font")
|
|
53 | 68 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
54 |
data.buffer.push("></span>\n "); |
|
69 |
data.buffer.push("></span>\n \n ");
|
|
55 | 70 |
return buffer; |
56 | 71 |
} |
57 | 72 |
|
58 |
data.buffer.push("<ul class=\"side-actions\">\n <li>\n <a href=\"vm_details.html\" data-tooltip title=\"view details\" class=\"details has-tip\">i</a>\n </li>\n <li>\n <a href=\"#\" title=\"connect to machine\" data-tooltip data-reveal-id=\"vm-connect\" class=\"has-tip\">\n <span class=\"snf-thunder-full\"></span>\n </a>\n </li>\n <li class=\"more-actions\">\n <a href=\"#\" title=\"\">...</a>\n <ul class=\"many\">\n ");
|
|
59 |
stack1 = helpers.each.call(depth0, "setAvailableActions", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
|
60 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
|
|
61 |
data.buffer.push("\n </ul>\n </li>\n <li class=\"bottom\">\n <a href=\"\" title=\"\"><span ></span></a>\n <ul class=\"options\">\n <li class=\"selected\"><a href=\"\">My awesome project</a></li>\n <li><a href=\"\">Project 1</a></li>\n <li><a href=\"\">Project 2</a></li>\n <li><a href=\"\">Project 3</a></li>\n <li><a href=\"\">Project 4</a></li>\n </ul>\n <ul>\n <li>My awesome project</li>\n <li><a href=\"\" class=\"reassign\">Reassign<span class=\"arrow-right\"></span></a></li>\n </ul>\n </li>\n </ul>\n <div class=\"container\">\n <a href=\"\" class=\"check\">\n <span class=\"snf-checkbox-unchecked\"></span>\n </a>\n <div class=\"img-wrap\">\n <span ");
|
|
73 |
function program8(depth0,data) {
|
|
74 |
|
|
75 |
var buffer = '';
|
|
76 |
data.buffer.push("\n <span "); |
|
62 | 77 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
63 |
'class': ("parentController.icon :snf-font")
|
|
78 |
'class': ("os :os")
|
|
64 | 79 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
65 | 80 |
data.buffer.push("></span>\n "); |
66 |
stack1 = helpers['if'].call(depth0, "parentController.hasOS", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(3, program3, data),contexts:[depth0],types:["ID"],data:data}); |
|
67 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
68 |
data.buffer.push("\n </div>\n <h4>"); |
|
69 |
stack1 = helpers._triageMustache.call(depth0, "icon", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
81 |
return buffer; |
|
82 |
} |
|
83 |
|
|
84 |
function program10(depth0,data) { |
|
85 |
|
|
86 |
var buffer = '', stack1; |
|
87 |
data.buffer.push("\n <h4>"); |
|
88 |
stack1 = helpers._triageMustache.call(depth0, "view.name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
70 | 89 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
71 |
data.buffer.push("</h4>\n <div class=\"actions\">\n <a href=\"\" data-reveal-id=\"vm-connect\" data-tooltip title=\"connect\" class=\"connect has-tip\"><span class=\"snf-thunder-full\"></span></a>\n <a href=\"vm_details.html\" data-tooltip title=\"view vm details\" class=\"snf-info-outline has-tip\">i</a>\n </div>\n <div class=\"tags\">\n </div>\n <div class= \"status\">\n <span class=\"state\">"); |
|
72 |
stack1 = helpers._triageMustache.call(depth0, "parentController.icon", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
90 |
data.buffer.push("</h4> \n "); |
|
91 |
return buffer; |
|
92 |
} |
|
93 |
|
|
94 |
function program12(depth0,data) { |
|
95 |
|
|
96 |
var buffer = '', stack1; |
|
97 |
data.buffer.push("\n <h4>"); |
|
98 |
stack1 = helpers._triageMustache.call(depth0, "name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
73 | 99 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
74 |
data.buffer.push("</span>\n <span class=\"state\">");
|
|
75 |
stack1 = helpers._triageMustache.call(depth0, "status", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
|
|
100 |
data.buffer.push("</h4>\n <div class=\"actions\">\n <a href=\"\" data-reveal-id=\"vm-connect\" data-tooltip title=\"connect\" class=\"connect has-tip\"><span class=\"snf-thunder-full\"></span></a>\n <a href=\"vm_details.html\" data-tooltip title=\"view vm details\" class=\"snf-info-outline has-tip\">i</a>\n </div>\n ");
|
|
101 |
stack1 = helpers['if'].call(depth0, "parentController.hasTags", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(13, program13, data),contexts:[depth0],types:["ID"],data:data});
|
|
76 | 102 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
77 |
data.buffer.push("</span>\n <span class=\"logs\">");
|
|
78 |
stack1 = helpers._triageMustache.call(depth0, "name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
|
|
103 |
data.buffer.push("\n <div class= \"status\">\n <span class=\"state\">");
|
|
104 |
stack1 = helpers._triageMustache.call(depth0, "view.status", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
|
|
79 | 105 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
80 |
data.buffer.push("</span>\n </div>\n <div class=\"info\"><a ");
|
|
106 |
data.buffer.push("</span>\n <span class=\"logs\">logs</span>\n </div>\n <div class=\"info\"><a ");
|
|
81 | 107 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
82 | 108 |
'href': ("hostname") |
83 | 109 |
},hashTypes:{'href': "ID"},hashContexts:{'href': depth0},contexts:[],types:[],data:data}))); |
84 | 110 |
data.buffer.push(" title=\"\">"); |
85 | 111 |
stack1 = helpers._triageMustache.call(depth0, "hostname", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
86 | 112 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
87 |
data.buffer.push("</a></div>\n </div>"); |
|
113 |
data.buffer.push("</a></div>\n </div>\n "); |
|
114 |
return buffer; |
|
115 |
} |
|
116 |
function program13(depth0,data) { |
|
117 |
|
|
118 |
|
|
119 |
data.buffer.push("\n <div class=\"tags\">tags</div>\n "); |
|
120 |
} |
|
121 |
|
|
122 |
stack1 = helpers.unless.call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
|
123 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
124 |
data.buffer.push("\n <div class=\"container\">\n <a href=\"\" class=\"check\">\n "); |
|
125 |
stack1 = helpers.unless.call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(4, program4, data),contexts:[depth0],types:["ID"],data:data}); |
|
126 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
127 |
data.buffer.push("\n </a>\n <div class=\"img-wrap\">\n "); |
|
128 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(6, program6, data),contexts:[depth0],types:["ID"],data:data}); |
|
129 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
130 |
data.buffer.push("\n <span "); |
|
131 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
132 |
'class': ("parentController.icon :snf-font") |
|
133 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
134 |
data.buffer.push("></span>\n "); |
|
135 |
stack1 = helpers['if'].call(depth0, "parentController.hasOS", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(8, program8, data),contexts:[depth0],types:["ID"],data:data}); |
|
136 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
137 |
data.buffer.push("\n </div>\n\n "); |
|
138 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.program(12, program12, data),fn:self.program(10, program10, data),contexts:[depth0],types:["ID"],data:data}); |
|
139 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
140 |
data.buffer.push("\n"); |
|
88 | 141 |
return buffer; |
89 | 142 |
|
90 | 143 |
}); |
... | ... | |
93 | 146 |
/**/) { |
94 | 147 |
this.compilerInfo = [4,'>= 1.0.0']; |
95 | 148 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; |
96 |
var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this;
|
|
149 |
var buffer = '', stack1, helper, options, escapeExpression=this.escapeExpression, helperMissing=helpers.helperMissing, self=this;
|
|
97 | 150 |
|
98 | 151 |
function program1(depth0,data) { |
99 | 152 |
|
... | ... | |
108 | 161 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
109 | 162 |
'class': (":entities :grid-view") |
110 | 163 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
111 |
data.buffer.push(">\n<ul class=\"items-list\">\n <li>Add New...</li>\n "); |
|
164 |
data.buffer.push(">\n<ul class=\"items-list\">\n "); |
|
165 |
data.buffer.push(escapeExpression((helper = helpers['add-new'] || (depth0 && depth0['add-new']),options={hash:{ |
|
166 |
'type': ("controller.type") |
|
167 |
},hashTypes:{'type': "ID"},hashContexts:{'type': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "add-new", options)))); |
|
168 |
data.buffer.push("\n "); |
|
112 | 169 |
stack1 = helpers.each.call(depth0, {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[],types:[],data:data}); |
113 | 170 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
114 | 171 |
data.buffer.push("\n</ul>\n</div>"); |
Also available in: Unified diff