Revision b058f1fe 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["elementSidebar"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
1
Ember.TEMPLATES["_elementSidebar"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
2 2
/**/) {
3 3
this.compilerInfo = [4,'>= 1.0.0'];
4 4
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
......
7 7
function program1(depth0,data) {
8 8
  
9 9
  var buffer = '', helper, options;
10
  data.buffer.push("\n			<li>\n				");
10
  data.buffer.push("\n				<li>\n					");
11 11
  data.buffer.push(escapeExpression((helper = helpers['btn-1'] || (depth0 && depth0['btn-1']),options={hash:{
12 12
    'actionLabel': ("description"),
13 13
    'elementID': ("controller.id"),
14 14
    'action': ("description"),
15 15
    'param': ("controller.id")
16 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		");
17
  data.buffer.push("\n				</li>\n			");
18 18
  return buffer;
19 19
  }
20 20

  
21
  data.buffer.push("<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		");
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 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 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>");
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 25
  return buffer;
26 26
  
27 27
});
28 28

  
29
Ember.TEMPLATES["img-wrap"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
29
Ember.TEMPLATES["_extraElemInfo"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
30 30
/**/) {
31 31
this.compilerInfo = [4,'>= 1.0.0'];
32 32
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
33
  var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this;
33
  var buffer = '', stack1, self=this, escapeExpression=this.escapeExpression;
34 34

  
35 35
function program1(depth0,data) {
36 36
  
37 37
  
38
  data.buffer.push("\n	");
38
  data.buffer.push("\n	<div class=\"tags\">tags</div>\n");
39 39
  }
40 40

  
41
function program3(depth0,data) {
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) {
42 76
  
43 77
  var buffer = '';
44
  data.buffer.push("\n		<span ");
78
  data.buffer.push("\n	<span ");
45 79
  data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{
46 80
    'class': ("os :os")
47 81
  },hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},contexts:[],types:[],data:data})));
48
  data.buffer.push("></span>\n	");
82
  data.buffer.push("></span>\n");
49 83
  return buffer;
50 84
  }
51 85

  
52
  data.buffer.push("\n		<span ");
86
  data.buffer.push("<span ");
53 87
  data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{
54 88
    'class': ("view.icon :snf-font")
55 89
  },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});
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});
61 92
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
62 93
  data.buffer.push("\n");
63 94
  return buffer;
64 95
  
65 96
});
66 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

  
67 111
Ember.TEMPLATES["navigationItem"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
68 112
/**/) {
69 113
this.compilerInfo = [4,'>= 1.0.0'];
......
74 118
  
75 119
  var buffer = '';
76 120
  data.buffer.push(" ");
77
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.NavIconView", {hash:{
121
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.NavIconView", {hash:{
78 122
    'class': ("view.content.icon")
79 123
  },hashTypes:{'class': "ID"},hashContexts:{'class': depth0},contexts:[depth0],types:["ID"],data:data})));
80 124
  data.buffer.push(" ");
......
94 138
/**/) {
95 139
this.compilerInfo = [4,'>= 1.0.0'];
96 140
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
97
  var buffer = '', stack1, escapeExpression=this.escapeExpression, helperMissing=helpers.helperMissing, self=this;
141
  var buffer = '', stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this;
98 142

  
99 143
function program1(depth0,data) {
100 144
  
101
  var buffer = '';
145
  var buffer = '', helper, options;
102 146
  data.buffer.push("\n	");
103
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.ElementSidebarView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data})));
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))));
104 148
  data.buffer.push("\n");
105 149
  return buffer;
106 150
  }
......
110 154
  var buffer = '', helper, options;
111 155
  data.buffer.push("\n		");
112 156
  data.buffer.push(escapeExpression((helper = helpers['snf-checkbox'] || (depth0 && depth0['snf-checkbox']),options={hash:{
113
    'initState': ("view.initSelect"),
114
    'elementID': ("id")
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))));
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))));
116 159
  data.buffer.push("\n	");
117 160
  return buffer;
118 161
  }
119 162

  
120 163
function program5(depth0,data) {
121 164
  
122
  var buffer = '', stack1;
123
  data.buffer.push("\n		<h4>");
124
  stack1 = helpers._triageMustache.call(depth0, "view.name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
125
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
126
  data.buffer.push("</h4>\n	");
127
  return buffer;
128
  }
129

  
130
function program7(depth0,data) {
131
  
132
  var buffer = '', stack1;
133
  data.buffer.push("\n		<h4>");
134
  stack1 = helpers._triageMustache.call(depth0, "name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
135
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
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});
138
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
139
  data.buffer.push("\n		<div class= \"status\">\n			<span class=\"state\">");
140
  stack1 = helpers._triageMustache.call(depth0, "view.status", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
141
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
142
  data.buffer.push("</span>\n			<span class=\"logs\">logs</span>\n		</div>\n		<div class=\"info\"><a ");
143
  data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{
144
    'href': ("hostname")
145
  },hashTypes:{'href': "ID"},hashContexts:{'href': depth0},contexts:[],types:[],data:data})));
146
  data.buffer.push(" title=\"\">");
147
  stack1 = helpers._triageMustache.call(depth0, "hostname", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
148
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
149
  data.buffer.push("</a></div>\n		</div>\n	");
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	");
150 171
  return buffer;
151 172
  }
152
function program8(depth0,data) {
153
  
154
  
155
  data.buffer.push("\n			<div class=\"tags\">tags</div>\n		");
156
  }
157 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");
158 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});
159 176
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
160 177
  data.buffer.push("\n<div class=\"container\">\n	");
161 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});
162 179
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
163 180
  data.buffer.push("\n	");
164
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.ImgWrapView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data})));
181
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.ImgWrapView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data})));
165 182
  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});
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});
167 186
  if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
168
  data.buffer.push("\n");
187
  data.buffer.push("\n</div>");
169 188
  return buffer;
170 189
  
171 190
});
......
180 199
  
181 200
  var buffer = '';
182 201
  data.buffer.push("\n		");
183
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Okeanos.ElemView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data})));
202
  data.buffer.push(escapeExpression(helpers.view.call(depth0, "Synnefo.ElemView", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data})));
184 203
  data.buffer.push("\n	");
185 204
  return buffer;
186 205
  }
......
243 262
  
244 263
});
245 264

  
246
Ember.TEMPLATES["components/snf-checkbox"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
265
Ember.TEMPLATES["components/select-btn"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data
247 266
/**/) {
248 267
this.compilerInfo = [4,'>= 1.0.0'];
249 268
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};

Also available in: Unified diff