Revision 3342f8ce snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js | ||
---|---|---|
26 | 26 |
|
27 | 27 |
}); |
28 | 28 |
|
29 |
Ember.TEMPLATES["img-wrap"] = 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, escapeExpression=this.escapeExpression, self=this; |
|
34 |
|
|
35 |
function program1(depth0,data) { |
|
36 |
|
|
37 |
|
|
38 |
data.buffer.push("\n "); |
|
39 |
} |
|
40 |
|
|
41 |
function program3(depth0,data) { |
|
42 |
|
|
43 |
var buffer = ''; |
|
44 |
data.buffer.push("\n <span "); |
|
45 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
46 |
'class': ("os :os") |
|
47 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
48 |
data.buffer.push("></span>\n "); |
|
49 |
return buffer; |
|
50 |
} |
|
51 |
|
|
52 |
data.buffer.push("\n <span "); |
|
53 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
54 |
'class': ("view.icon :snf-font") |
|
55 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
56 |
data.buffer.push("></span>\n "); |
|
57 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data}); |
|
58 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
59 |
data.buffer.push("\n "); |
|
60 |
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}); |
|
61 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
62 |
data.buffer.push("\n"); |
|
63 |
return buffer; |
|
64 |
|
|
65 |
}); |
|
66 |
|
|
29 | 67 |
Ember.TEMPLATES["navigationItem"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data |
30 | 68 |
/**/) { |
31 | 69 |
this.compilerInfo = [4,'>= 1.0.0']; |
... | ... | |
70 | 108 |
function program3(depth0,data) { |
71 | 109 |
|
72 | 110 |
var buffer = '', helper, options; |
73 |
data.buffer.push("\n ");
|
|
111 |
data.buffer.push("\n "); |
|
74 | 112 |
data.buffer.push(escapeExpression((helper = helpers['snf-checkbox'] || (depth0 && depth0['snf-checkbox']),options={hash:{ |
75 | 113 |
'initState': ("view.initSelect"), |
76 | 114 |
'elementID': ("id") |
77 | 115 |
},hashTypes:{'initState': "ID",'elementID': "ID"},hashContexts:{'initState': depth0,'elementID': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "snf-checkbox", options)))); |
78 |
data.buffer.push("\n ");
|
|
116 |
data.buffer.push("\n "); |
|
79 | 117 |
return buffer; |
80 | 118 |
} |
81 | 119 |
|
82 | 120 |
function program5(depth0,data) { |
83 | 121 |
|
84 |
var buffer = ''; |
|
85 |
data.buffer.push("\n <span "); |
|
86 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
87 |
'class': ("view.icon :snf-font") |
|
88 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
89 |
data.buffer.push("></span>\n "); |
|
90 |
return buffer; |
|
91 |
} |
|
92 |
|
|
93 |
function program7(depth0,data) { |
|
94 |
|
|
95 |
var buffer = ''; |
|
96 |
data.buffer.push("\n <span "); |
|
97 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
98 |
'class': ("os :os") |
|
99 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
100 |
data.buffer.push("></span>\n "); |
|
101 |
return buffer; |
|
102 |
} |
|
103 |
|
|
104 |
function program9(depth0,data) { |
|
105 |
|
|
106 | 122 |
var buffer = '', stack1; |
107 |
data.buffer.push("\n <h4>");
|
|
123 |
data.buffer.push("\n <h4>"); |
|
108 | 124 |
stack1 = helpers._triageMustache.call(depth0, "view.name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
109 | 125 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
110 |
data.buffer.push("</h4> \n ");
|
|
126 |
data.buffer.push("</h4>\n ");
|
|
111 | 127 |
return buffer; |
112 | 128 |
} |
113 | 129 |
|
114 |
function program11(depth0,data) {
|
|
130 |
function program7(depth0,data) {
|
|
115 | 131 |
|
116 | 132 |
var buffer = '', stack1; |
117 |
data.buffer.push("\n <h4>");
|
|
133 |
data.buffer.push("\n <h4>"); |
|
118 | 134 |
stack1 = helpers._triageMustache.call(depth0, "name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
119 | 135 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
120 |
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 ");
|
|
121 |
stack1 = helpers['if'].call(depth0, "parentController.hasTags", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(12, program12, data),contexts:[depth0],types:["ID"],data:data});
|
|
136 |
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 ");
|
|
137 |
stack1 = helpers['if'].call(depth0, "parentController.hasTags", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(8, program8, data),contexts:[depth0],types:["ID"],data:data});
|
|
122 | 138 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
123 |
data.buffer.push("\n <div class= \"status\">\n <span class=\"state\">");
|
|
139 |
data.buffer.push("\n <div class= \"status\">\n <span class=\"state\">");
|
|
124 | 140 |
stack1 = helpers._triageMustache.call(depth0, "view.status", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
125 | 141 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
126 |
data.buffer.push("</span>\n <span class=\"logs\">logs</span>\n </div>\n <div class=\"info\"><a ");
|
|
142 |
data.buffer.push("</span>\n <span class=\"logs\">logs</span>\n </div>\n <div class=\"info\"><a ");
|
|
127 | 143 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
128 | 144 |
'href': ("hostname") |
129 | 145 |
},hashTypes:{'href': "ID"},hashContexts:{'href': depth0},contexts:[],types:[],data:data}))); |
130 | 146 |
data.buffer.push(" title=\"\">"); |
131 | 147 |
stack1 = helpers._triageMustache.call(depth0, "hostname", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
132 | 148 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
133 |
data.buffer.push("</a></div>\n </div>\n ");
|
|
149 |
data.buffer.push("</a></div>\n </div>\n ");
|
|
134 | 150 |
return buffer; |
135 | 151 |
} |
136 |
function program12(depth0,data) {
|
|
152 |
function program8(depth0,data) {
|
|
137 | 153 |
|
138 | 154 |
|
139 |
data.buffer.push("\n <div class=\"tags\">tags</div>\n ");
|
|
155 |
data.buffer.push("\n <div class=\"tags\">tags</div>\n ");
|
|
140 | 156 |
} |
141 | 157 |
|
142 | 158 |
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}); |
143 | 159 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
144 |
data.buffer.push("\n <div class=\"container\">\n ");
|
|
160 |
data.buffer.push("\n<div class=\"container\">\n ");
|
|
145 | 161 |
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}); |
146 | 162 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
147 |
data.buffer.push("\n <div class=\"img-wrap\">\n "); |
|
148 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(5, program5, data),contexts:[depth0],types:["ID"],data:data}); |
|
149 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
150 |
data.buffer.push("\n <span "); |
|
151 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
152 |
'class': ("parentController.icon :snf-font") |
|
153 |
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data}))); |
|
154 |
data.buffer.push("></span>\n "); |
|
155 |
stack1 = helpers['if'].call(depth0, "parentController.hasOS", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(7, program7, data),contexts:[depth0],types:["ID"],data:data}); |
|
156 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
157 |
data.buffer.push("\n </div>\n "); |
|
158 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.program(11, program11, data),fn:self.program(9, program9, data),contexts:[depth0],types:["ID"],data:data}); |
|
163 |
data.buffer.push("\n "); |
|
164 |
data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.ImgWrapView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
|
165 |
data.buffer.push("\n "); |
|
166 |
stack1 = helpers['if'].call(depth0, "view.addNewBtn", {hash:{},hashTypes:{},hashContexts:{},inverse:self.program(7, program7, data),fn:self.program(5, program5, data),contexts:[depth0],types:["ID"],data:data}); |
|
159 | 167 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
160 | 168 |
data.buffer.push("\n"); |
161 | 169 |
return buffer; |
Also available in: Unified diff