Revision d0fe8c12 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js | ||
---|---|---|
1 |
Ember.TEMPLATES["navigationItem"] = 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 stack1, helper, options, escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing; |
|
6 |
|
|
7 |
function program1(depth0,data) { |
|
8 |
|
|
9 |
var buffer = ''; |
|
10 |
data.buffer.push(" "); |
|
11 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.NavIconView", {hash:{ |
|
12 |
'class': ("view.content.icon") |
|
13 |
},hashTypes:{'class': "ID"},hashContexts:{'class': depth0},contexts:[depth0],types:["ID"],data:data}))); |
|
14 |
data.buffer.push(" "); |
|
15 |
return buffer; |
|
16 |
} |
|
17 |
|
|
18 |
stack1 = (helper = helpers['link-to'] || (depth0 && depth0['link-to']),options={hash:{ |
|
19 |
'activeClass': ("current"), |
|
20 |
'title': ("view.content.title") |
|
21 |
},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)); |
|
22 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
23 |
else { data.buffer.push(''); } |
|
24 |
|
|
25 |
}); |
|
26 |
|
|
27 |
Ember.TEMPLATES["snfElem"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
|
28 |
/**/) { |
|
29 |
this.compilerInfo = [4,'>= 1.0.0']; |
|
30 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; |
|
31 |
var buffer = '', stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; |
|
32 |
|
|
33 |
function program1(depth0,data) { |
|
34 |
|
|
35 |
var buffer = '', helper, options; |
|
36 |
data.buffer.push("\n <li>\n "); |
|
37 |
data.buffer.push(escapeExpression((helper = helpers['actionBtns-simple'] || (depth0 && depth0['actionBtns-simple']),options={hash:{ |
|
38 |
'actionLabel': ("description"), |
|
39 |
'elementID': ("controller.id"), |
|
40 |
'action': ("description"), |
|
41 |
'param': ("controller.id") |
|
42 |
},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, "actionBtns-simple", options)))); |
|
43 |
data.buffer.push("\n </li>\n "); |
|
44 |
return buffer; |
|
45 |
} |
|
46 |
|
|
47 |
function program3(depth0,data) { |
|
48 |
|
|
49 |
var buffer = ''; |
|
50 |
data.buffer.push("\n <span "); |
|
51 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
52 |
'class': ("os :os") |
|
53 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
54 |
data.buffer.push("></span>\n "); |
|
55 |
return buffer; |
|
56 |
} |
|
57 |
|
|
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 "); |
|
62 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
63 |
'class': ("parentController.icon :snf-font") |
|
64 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
65 |
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}); |
|
70 |
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}); |
|
73 |
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}); |
|
76 |
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}); |
|
79 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
80 |
data.buffer.push("</span>\n </div>\n <div class=\"info\"><a "); |
|
81 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
82 |
'href': ("hostname") |
|
83 |
},hashTypes:{'href': "ID"},hashContexts:{'href': depth0},contexts:[],types:[],data:data}))); |
|
84 |
data.buffer.push(" title=\"\">"); |
|
85 |
stack1 = helpers._triageMustache.call(depth0, "hostname", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
86 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
87 |
data.buffer.push("</a></div>\n </div>"); |
|
88 |
return buffer; |
|
89 |
|
|
90 |
}); |
|
91 |
|
|
92 |
Ember.TEMPLATES["snfElems"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
|
93 |
/**/) { |
|
94 |
this.compilerInfo = [4,'>= 1.0.0']; |
|
95 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; |
|
96 |
var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this; |
|
97 |
|
|
98 |
function program1(depth0,data) { |
|
99 |
|
|
100 |
var buffer = ''; |
|
101 |
data.buffer.push("\n "); |
|
102 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.ElemView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
|
103 |
data.buffer.push("\n "); |
|
104 |
return buffer; |
|
105 |
} |
|
106 |
|
|
107 |
data.buffer.push("<div "); |
|
108 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
109 |
'class': (":entities :grid-view") |
|
110 |
},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 "); |
|
112 |
stack1 = helpers.each.call(depth0, {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[],types:[],data:data}); |
|
113 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
114 |
data.buffer.push("\n</ul>\n</div>"); |
|
115 |
return buffer; |
|
116 |
|
|
117 |
}); |
|
118 |
|
|
119 |
Ember.TEMPLATES["test"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
|
120 |
/**/) { |
|
121 |
this.compilerInfo = [4,'>= 1.0.0']; |
|
122 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; |
|
123 |
|
|
124 |
|
|
125 |
|
|
126 |
data.buffer.push("<div>hey you</div>"); |
|
127 |
|
|
128 |
}); |
Also available in: Unified diff