root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / templates.js @ 812b1e8d
History | View | Annotate | Download (14.8 kB)
1 |
Ember.TEMPLATES["_elementSidebar"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
---|---|
2 |
/**/) {
|
3 |
this.compilerInfo = [4,'>= 1.0.0']; |
4 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
5 |
var buffer = '', stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; |
6 |
|
7 |
function program1(depth0,data) { |
8 |
|
9 |
var buffer = '', helper, options; |
10 |
data.buffer.push("\n <li>\n ");
|
11 |
data.buffer.push(escapeExpression((helper = helpers['btn-1'] || (depth0 && depth0['btn-1']),options={hash:{ |
12 |
'actionLabel': ("description"), |
13 |
'elementID': ("controller.id"), |
14 |
'action': ("description"), |
15 |
'param': ("controller.id") |
16 |
},hashTypes:{'actionLabel': "ID",'elementID': "ID",'action': "ID",'param': "ID"},hashContexts:{'actionLabel': depth0,'elementID': depth0,'action': depth0,'param': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "btn-1", options)))); |
17 |
data.buffer.push("\n </li>\n ");
|
18 |
return buffer;
|
19 |
} |
20 |
|
21 |
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 ");
|
22 |
stack1 = helpers.each.call(depth0, "setAvailableActions", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
23 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
24 |
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>");
|
25 |
return buffer;
|
26 |
|
27 |
}); |
28 |
|
29 |
Ember.TEMPLATES["_extraElemInfo"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
30 |
/**/) {
|
31 |
this.compilerInfo = [4,'>= 1.0.0']; |
32 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
33 |
var buffer = '', stack1, self=this, escapeExpression=this.escapeExpression; |
34 |
|
35 |
function program1(depth0,data) { |
36 |
|
37 |
|
38 |
data.buffer.push("\n <div class=\"tags\">tags</div>\n");
|
39 |
} |
40 |
|
41 |
stack1 = helpers['if'].call(depth0, "parentController.hasTags", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
42 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
43 |
data.buffer.push("\n<div class= \"status\">\n <span class=\"state\">");
|
44 |
stack1 = helpers._triageMustache.call(depth0, "view.status", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
45 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
46 |
data.buffer.push("</span>\n <span class=\"logs\">logs</span>\n</div>\n<div class=\"info\"><a ");
|
47 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
48 |
'href': ("hostname") |
49 |
},hashTypes:{'href': "ID"},hashContexts:{'href': depth0},contexts:[],types:[],data:data}))); |
50 |
data.buffer.push(" title=\"\">");
|
51 |
stack1 = helpers._triageMustache.call(depth0, "hostname", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
52 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
53 |
data.buffer.push("</a></div>");
|
54 |
return buffer;
|
55 |
|
56 |
}); |
57 |
|
58 |
Ember.TEMPLATES["actions"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
59 |
/**/) {
|
60 |
this.compilerInfo = [4,'>= 1.0.0']; |
61 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
62 |
|
63 |
|
64 |
|
65 |
data.buffer.push(" <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=\"has-tip\"> <span class=\"snf-info-outline\"></span></a>");
|
66 |
|
67 |
}); |
68 |
|
69 |
Ember.TEMPLATES["img-wrap"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
70 |
/**/) {
|
71 |
this.compilerInfo = [4,'>= 1.0.0']; |
72 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
73 |
var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this; |
74 |
|
75 |
function program1(depth0,data) { |
76 |
|
77 |
var buffer = ''; |
78 |
data.buffer.push("\n <span ");
|
79 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
80 |
'class': ("os :os") |
81 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
82 |
data.buffer.push("></span>\n");
|
83 |
return buffer;
|
84 |
} |
85 |
|
86 |
data.buffer.push("<span ");
|
87 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
88 |
'class': ("view.icon :snf-font") |
89 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
90 |
data.buffer.push("></span>\n");
|
91 |
stack1 = helpers['if'].call(depth0, "parentController.hasOS", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
92 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
93 |
data.buffer.push("\n");
|
94 |
return buffer;
|
95 |
|
96 |
}); |
97 |
|
98 |
Ember.TEMPLATES["name"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
99 |
/**/) {
|
100 |
this.compilerInfo = [4,'>= 1.0.0']; |
101 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
102 |
var stack1;
|
103 |
|
104 |
|
105 |
stack1 = helpers._triageMustache.call(depth0, "view.name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
106 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
107 |
else { data.buffer.push(''); } |
108 |
|
109 |
}); |
110 |
|
111 |
Ember.TEMPLATES["navigationItem"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
112 |
/**/) {
|
113 |
this.compilerInfo = [4,'>= 1.0.0']; |
114 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
115 |
var stack1, helper, options, escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing; |
116 |
|
117 |
function program1(depth0,data) { |
118 |
|
119 |
var buffer = ''; |
120 |
data.buffer.push(" ");
|
121 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.NavIconView", {hash:{ |
122 |
'class': ("view.content.icon") |
123 |
},hashTypes:{'class': "ID"},hashContexts:{'class': depth0},contexts:[depth0],types:["ID"],data:data}))); |
124 |
data.buffer.push(" ");
|
125 |
return buffer;
|
126 |
} |
127 |
|
128 |
stack1 = (helper = helpers['link-to'] || (depth0 && depth0['link-to']),options={hash:{ |
129 |
'activeClass': ("current"), |
130 |
'title': ("view.content.title") |
131 |
},hashTypes:{'activeClass': "STRING",'title': "ID"},hashContexts:{'activeClass': depth0,'title': depth0},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data},helper ? helper.call(depth0, "view.content.destination", options) : helperMissing.call(depth0, "link-to", "view.content.destination", options)); |
132 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
133 |
else { data.buffer.push(''); } |
134 |
|
135 |
}); |
136 |
|
137 |
Ember.TEMPLATES["snfElem"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
138 |
/**/) {
|
139 |
this.compilerInfo = [4,'>= 1.0.0']; |
140 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
141 |
var buffer = '', stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; |
142 |
|
143 |
function program1(depth0,data) { |
144 |
|
145 |
var buffer = '', helper, options; |
146 |
data.buffer.push("\n ");
|
147 |
data.buffer.push(escapeExpression((helper = helpers.partial || (depth0 && depth0.partial),options={hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data},helper ? helper.call(depth0, "elementSidebar", options) : helperMissing.call(depth0, "partial", "elementSidebar", options)))); |
148 |
data.buffer.push("\n");
|
149 |
return buffer;
|
150 |
} |
151 |
|
152 |
function program3(depth0,data) { |
153 |
|
154 |
var buffer = '', helper, options; |
155 |
data.buffer.push("\n ");
|
156 |
data.buffer.push(escapeExpression((helper = helpers['snf-checkbox'] || (depth0 && depth0['snf-checkbox']),options={hash:{ |
157 |
'initState': ("view.initSelect") |
158 |
},hashTypes:{'initState': "ID"},hashContexts:{'initState': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "snf-checkbox", options)))); |
159 |
data.buffer.push("\n ");
|
160 |
return buffer;
|
161 |
} |
162 |
|
163 |
function program5(depth0,data) { |
164 |
|
165 |
var buffer = '', helper, options; |
166 |
data.buffer.push("\n <!-- actions will be different for every kind of models (vms <> nets <> volumes) -->\n <!-- for now: view (should be a collection of components=btn2: btns with only icon?) -->\n ");
|
167 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.ImmediateActionView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
168 |
data.buffer.push("\n ");
|
169 |
data.buffer.push(escapeExpression((helper = helpers.partial || (depth0 && depth0.partial),options={hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data},helper ? helper.call(depth0, "extraElemInfo", options) : helperMissing.call(depth0, "partial", "extraElemInfo", options)))); |
170 |
data.buffer.push("\n ");
|
171 |
return buffer;
|
172 |
} |
173 |
|
174 |
data.buffer.push("<!-- the conditionals here define the structure of output and they are not involved with the origin of the displayed data -->\n\n");
|
175 |
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}); |
176 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
177 |
data.buffer.push("\n<div class=\"container\">\n ");
|
178 |
stack1 = helpers['if'].call(depth0, "view.selectable", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(3, program3, data),contexts:[depth0],types:["ID"],data:data}); |
179 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
180 |
data.buffer.push("\n ");
|
181 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.ImgWrapView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
182 |
data.buffer.push("\n ");
|
183 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.NameView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
184 |
data.buffer.push("\n ");
|
185 |
stack1 = helpers.unless.call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(5, program5, data),contexts:[depth0],types:["ID"],data:data}); |
186 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
187 |
data.buffer.push("\n</div>");
|
188 |
return buffer;
|
189 |
|
190 |
}); |
191 |
|
192 |
Ember.TEMPLATES["snfElems"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
193 |
/**/) {
|
194 |
this.compilerInfo = [4,'>= 1.0.0']; |
195 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
196 |
var buffer = '', stack1, helper, options, escapeExpression=this.escapeExpression, helperMissing=helpers.helperMissing, self=this; |
197 |
|
198 |
function program1(depth0,data) { |
199 |
|
200 |
var buffer = ''; |
201 |
data.buffer.push("\n ");
|
202 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.ElemView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
203 |
data.buffer.push("\n ");
|
204 |
return buffer;
|
205 |
} |
206 |
|
207 |
data.buffer.push("<div ");
|
208 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
209 |
'class': (":entities :list-view") |
210 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
211 |
data.buffer.push(">\n<ul class=\"items-list\">\n ");
|
212 |
data.buffer.push(escapeExpression((helper = helpers['add-new'] || (depth0 && depth0['add-new']),options={hash:{ |
213 |
'type': ("controller.type"), |
214 |
'action': ("openWizard") |
215 |
},hashTypes:{'type': "ID",'action': "STRING"},hashContexts:{'type': depth0,'action': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "add-new", options)))); |
216 |
data.buffer.push("\n ");
|
217 |
stack1 = helpers.each.call(depth0, {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[],types:[],data:data}); |
218 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
219 |
data.buffer.push("\n</ul>\n</div>");
|
220 |
return buffer;
|
221 |
|
222 |
}); |
223 |
|
224 |
Ember.TEMPLATES["test"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
225 |
/**/) {
|
226 |
this.compilerInfo = [4,'>= 1.0.0']; |
227 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
228 |
|
229 |
|
230 |
|
231 |
data.buffer.push("<div>hey you</div>");
|
232 |
|
233 |
}); |
234 |
|
235 |
Ember.TEMPLATES["wizard"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
236 |
/**/) {
|
237 |
this.compilerInfo = [4,'>= 1.0.0']; |
238 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
239 |
|
240 |
|
241 |
|
242 |
data.buffer.push("<section class=\"overlay-area-custom\">\n <div id=\"vm-wizard\" class=\"overlay-div wizard\">\n </div>\n</section>");
|
243 |
|
244 |
}); |
245 |
|
246 |
Ember.TEMPLATES["components/btn-1"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
247 |
/**/) {
|
248 |
this.compilerInfo = [4,'>= 1.0.0']; |
249 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
250 |
var buffer = '', stack1; |
251 |
|
252 |
|
253 |
stack1 = helpers._triageMustache.call(depth0, "actionLabel", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
254 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
255 |
data.buffer.push(" - ");
|
256 |
stack1 = helpers._triageMustache.call(depth0, "elementID", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
257 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
258 |
return buffer;
|
259 |
|
260 |
}); |
261 |
|
262 |
Ember.TEMPLATES["components/login-menu"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
263 |
/**/) {
|
264 |
this.compilerInfo = [4,'>= 1.0.0']; |
265 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
266 |
var buffer = '', stack1; |
267 |
|
268 |
|
269 |
data.buffer.push("<div class=\"wrap\">\n <a href=\"\">");
|
270 |
stack1 = helpers._triageMustache.call(depth0, "email", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
271 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
272 |
data.buffer.push("</a>\n <ul>\n <li><a href=\"\">dashboard</a></li>\n <li><a href=\"\">sign out</a></li>\n </ul>\n</div>");
|
273 |
return buffer;
|
274 |
|
275 |
}); |
276 |
|
277 |
Ember.TEMPLATES["components/select-btn"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
278 |
/**/) {
|
279 |
this.compilerInfo = [4,'>= 1.0.0']; |
280 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
|
281 |
|
282 |
|
283 |
|
284 |
data.buffer.push("<span></span>");
|
285 |
|
286 |
}); |