spiderfw 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/CHANGELOG +10 -0
  2. data/VERSION +1 -1
  3. data/apps/app_server/config/options.rb +2 -2
  4. data/apps/core/components/assets.rb +1 -5
  5. data/apps/core/components/widgets/month_calendar/month_calendar.shtml +3 -3
  6. data/apps/core/components/widgets/table/table.rb +2 -0
  7. data/apps/core/components/widgets/tabs/tabs.rb +9 -3
  8. data/apps/core/components/widgets/tabs/tabs.shtml +1 -1
  9. data/apps/master/_init.rb +3 -1
  10. data/apps/master/cmd.rb +1 -1
  11. data/apps/master/controllers/master_controller.rb +107 -103
  12. data/apps/master/controllers/scout_controller.rb +7 -7
  13. data/apps/master/controllers/{servant_controller.rb → server_controller.rb} +3 -3
  14. data/apps/master/data/locale/it/LC_MESSAGES/master.mo +0 -0
  15. data/apps/master/master.rb +4 -4
  16. data/apps/master/models/customer.rb +0 -3
  17. data/apps/master/models/installation.rb +14 -3
  18. data/apps/master/models/remote_log.rb +11 -0
  19. data/apps/master/models/scout_plugin_instance.rb +9 -9
  20. data/apps/master/models/scout_plugin_trigger.rb +2 -2
  21. data/apps/master/models/{servant.rb → server.rb} +6 -6
  22. data/apps/master/po/it/{spider_master.po → master.po} +127 -54
  23. data/apps/master/po/master.pot +23 -23
  24. data/apps/master/templates/email/alert.html.erb +1 -1
  25. data/apps/master/views/customer.shtml +3 -3
  26. data/apps/master/views/index.shtml +1 -2
  27. data/apps/master/views/installation.shtml +28 -16
  28. data/apps/master/views/master.layout.shtml +2 -1
  29. data/apps/master/views/plugin_data.shtml +1 -1
  30. data/apps/master/views/{servant.shtml → server.shtml} +14 -14
  31. data/apps/master/views/servers.shtml +11 -0
  32. data/apps/master/views/site_edit.shtml +1 -1
  33. data/apps/master/views/trigger_edit.shtml +4 -4
  34. data/apps/messenger/controllers/mixins/messenger_helper.rb +3 -3
  35. data/apps/servant/Gemfile +1 -0
  36. data/apps/servant/_init.rb +5 -1
  37. data/apps/servant/cmd.rb +14 -45
  38. data/apps/servant/config/options.rb +1 -0
  39. data/apps/servant/controllers/servant_controller.rb +7 -1
  40. data/apps/servant/lib/client.rb +55 -0
  41. data/apps/servant/servant.appspec +1 -1
  42. data/apps/servant/servant.rb +90 -0
  43. data/apps/worker/cmd.rb +9 -4
  44. data/apps/worker/worker.rb +11 -6
  45. data/blueprints/bin/spider +7 -0
  46. data/blueprints/home/config/config.yml +2 -3
  47. data/blueprints/home/init.rb +1 -1
  48. data/lib/spiderfw/app.rb +50 -2
  49. data/lib/spiderfw/cmd/commands/app.rb +22 -12
  50. data/lib/spiderfw/cmd/commands/config.rb +2 -1
  51. data/lib/spiderfw/config/configuration_editor.rb +7 -4
  52. data/lib/spiderfw/config/options/spider.rb +3 -1
  53. data/lib/spiderfw/controller/helpers/widget_helper.rb +6 -3
  54. data/lib/spiderfw/controller/mixins/http_mixin.rb +2 -1
  55. data/lib/spiderfw/controller/mixins/visual.rb +12 -10
  56. data/lib/spiderfw/env.rb +8 -1
  57. data/lib/spiderfw/home.rb +31 -4
  58. data/lib/spiderfw/http/server.rb +32 -14
  59. data/lib/spiderfw/model/mappers/mapper.rb +2 -2
  60. data/lib/spiderfw/model/mixins/tree.rb +7 -5
  61. data/lib/spiderfw/model/storage/db/adapters/mysql.rb +55 -2
  62. data/lib/spiderfw/model/storage/db/adapters/oracle.rb +80 -3
  63. data/lib/spiderfw/model/storage/db/connectors/jdbc_oracle.rb +3 -2
  64. data/lib/spiderfw/model/storage/db/connectors/oci8.rb +3 -2
  65. data/lib/spiderfw/model/storage/db/db_storage.rb +22 -0
  66. data/lib/spiderfw/setup/app_manager.rb +6 -2
  67. data/lib/spiderfw/site.rb +3 -1
  68. data/lib/spiderfw/spider.rb +145 -18
  69. data/lib/spiderfw/templates/blocks/parent_context.rb +3 -1
  70. data/lib/spiderfw/templates/template.rb +14 -5
  71. data/lib/spiderfw/widget/widget.rb +1 -0
  72. data/lib/spiderfw/widget/widget_attributes.rb +2 -2
  73. metadata +16 -16
  74. data/apps/master/po/spider_master.pot +0 -331
  75. data/apps/master/views/servants.shtml +0 -11
  76. data/apps/servant/lib/commands/discovery.rb +0 -0
  77. data/apps/servant/lib/resource.rb +0 -14
  78. data/apps/servant/lib/resources/db/mysql.rb +0 -35
  79. data/apps/servant/lib/resources/db.rb +0 -55
  80. data/apps/servant/lib/servant.rb +0 -88
  81. data/apps/servant/var/log/error.log +0 -1
@@ -0,0 +1,11 @@
1
+ module Spider; module Master
2
+
3
+ class RemoteLog < Spider::Model::Managed
4
+ element :text, String
5
+ element :level, String
6
+ element :time, DateTime
7
+ element :installation, Spider::Master::Installation, :add_multiple_reverse => :log
8
+ element :acknowledged, Spider::Bool
9
+ end
10
+
11
+ end; end
@@ -7,7 +7,7 @@ module Spider; module Master
7
7
  class ScoutPluginInstance < Spider::Model::Managed
8
8
  element :plugin_id, String
9
9
  element :name, String
10
- element :servant, Servant, :add_multiple_reverse => :scout_plugins
10
+ element :server, Server, :add_multiple_reverse => :scout_plugins
11
11
  element :settings_json, Text
12
12
  element :timeout, Fixnum, :default => 60
13
13
  element :poll_interval, Fixnum, :default => 0
@@ -98,7 +98,7 @@ module Spider; module Master
98
98
  end
99
99
 
100
100
  def to_s
101
- "#{self.name} - #{self.servant}"
101
+ "#{self.name} - #{self.server}"
102
102
  end
103
103
 
104
104
  def average(field, type)
@@ -269,11 +269,11 @@ module Spider; module Master
269
269
 
270
270
  def before_save(obj, mode)
271
271
  if mode == :insert
272
- obj.servant.admins.each do |servant_adm|
272
+ obj.server.admins.each do |server_adm|
273
273
  obj.admins << ScoutPluginInstance::Admins.new(
274
- :admin => servant_adm.admin,
275
- :receive_notifications => servant_adm.receive_notifications,
276
- :manage => servant_adm.manage_plugins
274
+ :admin => server_adm.admin,
275
+ :receive_notifications => server_adm.receive_notifications,
276
+ :manage => server_adm.manage_plugins
277
277
  )
278
278
  end
279
279
  end
@@ -288,9 +288,9 @@ module Spider; module Master
288
288
  trigger.save
289
289
  end
290
290
  end
291
- if obj.servant
292
- obj.servant.scout_plan_changed = DateTime.now
293
- obj.servant.save
291
+ if obj.server
292
+ obj.server.scout_plan_changed = DateTime.now
293
+ obj.server.save
294
294
  end
295
295
  super
296
296
  end
@@ -247,8 +247,8 @@ module Spider; module Master
247
247
  path_html = MasterController.find_resource_path(:email, template+'.html', nil, MasterController)
248
248
 
249
249
  # ERB data
250
- server_id = self.plugin_instance.servant.id
251
- server_name = self.plugin_instance.servant.name
250
+ server_id = self.plugin_instance.server.id
251
+ server_name = self.plugin_instance.server.name
252
252
  plugin_id = self.plugin_instance.id
253
253
  plugin_name = self.plugin_instance.name
254
254
  message = msg
@@ -3,19 +3,19 @@ require 'apps/master/models/command'
3
3
 
4
4
  module Spider; module Master
5
5
 
6
- class Servant < Spider::Model::Managed
6
+ class Server < Spider::Model::Managed
7
7
  element :uuid, UUID
8
8
  element :name, String
9
9
  element :last_check, DateTime, :read_only => true
10
10
  element :system_status, Text, :read_only => true
11
11
  element :scout_poll_interval, Fixnum, :default => 5
12
12
  # element :url, String
13
- many :commands, Master::Command, :add_reverse => :servant
13
+ many :commands, Master::Command, :add_reverse => :server
14
14
  element_query :pending_commands, :commands, :condition => Spider::Model::Condition.new{ |c| c.status == 'pending' }
15
15
  many :resources, Master::Resource, :delete_cascade => true
16
- choice :customer, Master::Customer, :add_multiple_reverse => :servants
16
+ choice :customer, Master::Customer, :add_multiple_reverse => :server
17
17
  element :scout_plan_changed, DateTime, :hidden => true
18
- multiple_choice :admins, Master::Admin, :add_multiple_reverse => :servants do
18
+ multiple_choice :admins, Master::Admin, :add_multiple_reverse => :server do
19
19
  element :receive_notifications, Bool, :default => true
20
20
  element :manage_plugins, Bool, :default => true
21
21
  end
@@ -34,7 +34,7 @@ module Spider; module Master
34
34
  if self.url
35
35
  # send_command(name, arguments)
36
36
  else
37
- c = Command.new(:name => name, :arguments => arguments.to_json, :servant => self)
37
+ c = Command.new(:name => name, :arguments => arguments.to_json, :server => self)
38
38
  c.save
39
39
  end
40
40
  end
@@ -77,7 +77,7 @@ module Spider; module Master
77
77
  if mode == :insert
78
78
  if obj.customer
79
79
  obj.customer.admins.each do |customer_adm|
80
- obj.admins << Servant::Admins.new(
80
+ obj.admins << Server::Admins.new(
81
81
  :admin => customer_adm.admin,
82
82
  :receive_notifications => customer_adm.receive_notifications,
83
83
  :manage_plugins => customer_adm.manage_plugins
@@ -5,92 +5,106 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: Spider::Master\n"
9
- "POT-Creation-Date: 2010-09-24 20:50+0200\n"
10
- "PO-Revision-Date: 2010-09-24 20:51+0100\n"
8
+ "Project-Id-Version: Spider::Master 0.1\n"
9
+ "POT-Creation-Date: 2011-07-05 18:34+0200\n"
10
+ "PO-Revision-Date: 2011-07-05 18:39+0100\n"
11
11
  "Last-Translator: Ivan Pirlik <ivan.pirlik@soluzionipa.it>\n"
12
12
  "Language-Team: LANGUAGE <LL@li.org>\n"
13
+ "Language: \n"
13
14
  "MIME-Version: 1.0\n"
14
15
  "Content-Type: text/plain; charset=UTF-8\n"
15
16
  "Content-Transfer-Encoding: 8bit\n"
16
17
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
17
18
 
18
- #: controllers/master_controller.rb:48
19
+ #: controllers/master_controller.rb:51
19
20
  #: views/customers.shtml:3
20
21
  #: views/index.shtml:2
21
- #: views/master.layout.shtml:18
22
+ #: views/master.layout.shtml:20
22
23
  msgid "Customers"
23
24
  msgstr "Clienti"
24
25
 
25
- #: controllers/master_controller.rb:79
26
+ #: controllers/master_controller.rb:82
26
27
  msgid "No customer"
27
28
  msgstr "Nessun cliente"
28
29
 
29
- #: controllers/master_controller.rb:81
30
+ #: controllers/master_controller.rb:84
30
31
  msgid "User can't access this customer"
31
32
  msgstr "L'utente non è autorizzato a vedere questo cliente"
32
33
 
33
- #: controllers/master_controller.rb:100
34
+ #: controllers/master_controller.rb:103
34
35
  msgid "User can't list customers"
35
36
  msgstr "L'utente non è autorizzato a vedere la lista cliente"
36
37
 
37
- #: models/scout_plugin_trigger.rb:6
38
+ #: models/scout_plugin_instance.rb:21
39
+ msgid "Ok"
40
+ msgstr "Ok"
41
+
42
+ #: models/scout_plugin_instance.rb:22
43
+ msgid "Error"
44
+ msgstr "Errore"
45
+
46
+ #: models/scout_plugin_instance.rb:23
47
+ msgid "Alert"
48
+ msgstr "Avviso"
49
+
50
+ #: models/scout_plugin_trigger.rb:8
38
51
  msgid "Peak trigger"
39
52
  msgstr "Trigger di picco"
40
53
 
41
- #: models/scout_plugin_trigger.rb:7
54
+ #: models/scout_plugin_trigger.rb:9
42
55
  msgid "Plateau trigger"
43
56
  msgstr "Trigger di plateau"
44
57
 
45
- #: models/scout_plugin_trigger.rb:8
58
+ #: models/scout_plugin_trigger.rb:10
46
59
  msgid "Trend trigger"
47
60
  msgstr "Trigger di tendenza"
48
61
 
49
- #: models/scout_plugin_trigger.rb:13
62
+ #: models/scout_plugin_trigger.rb:15
50
63
  msgid "Up"
51
64
  msgstr "Su"
52
65
 
53
- #: models/scout_plugin_trigger.rb:14
66
+ #: models/scout_plugin_trigger.rb:16
54
67
  msgid "Down"
55
68
  msgstr "Giù"
56
69
 
57
- #: models/scout_plugin_trigger.rb:15
70
+ #: models/scout_plugin_trigger.rb:17
58
71
  msgid "Either"
59
72
  msgstr "Su o giù"
60
73
 
61
- #: models/scout_plugin_trigger.rb:20
74
+ #: models/scout_plugin_trigger.rb:22
62
75
  #: views/trigger_edit.shtml:76
63
76
  msgid "yesterday's average"
64
77
  msgstr "media di ieri"
65
78
 
66
- #: models/scout_plugin_trigger.rb:21
79
+ #: models/scout_plugin_trigger.rb:23
67
80
  #: views/trigger_edit.shtml:79
68
81
  msgid "previous 7-day average"
69
82
  msgstr "media dei 7 giorni precedenti"
70
83
 
71
- #: models/scout_plugin_trigger.rb:22
84
+ #: models/scout_plugin_trigger.rb:24
72
85
  #: views/trigger_edit.shtml:82
73
86
  msgid "preceding window"
74
87
  msgstr "finestra precedente"
75
88
 
76
- #: models/scout_plugin_trigger.rb:25
89
+ #: models/scout_plugin_trigger.rb:27
77
90
  msgid "normal"
78
91
  msgstr "normale"
79
92
 
80
- #: models/scout_plugin_trigger.rb:26
93
+ #: models/scout_plugin_trigger.rb:28
81
94
  msgid "fired"
82
95
  msgstr "scattato"
83
96
 
84
- #: models/scout_plugin_trigger.rb:90
85
- #: models/scout_plugin_trigger.rb:98
97
+ #: models/scout_plugin_trigger.rb:93
98
+ #: models/scout_plugin_trigger.rb:101
99
+ #: models/scout_plugin_trigger.rb:230
86
100
  msgid "%d minutes"
87
101
  msgstr "%d minuti"
88
102
 
89
- #: models/scout_plugin_trigger.rb:108
103
+ #: models/scout_plugin_trigger.rb:111
90
104
  msgid "Alert me when %s exceeds %s"
91
105
  msgstr "Avvisami quando %s supera %s"
92
106
 
93
- #: models/scout_plugin_trigger.rb:110
107
+ #: models/scout_plugin_trigger.rb:113
94
108
  msgid ""
95
109
  "Alert me when %s goes %s more than %s over the preceding %s (relative to %s), \n"
96
110
  " as long as the value is at least %s"
@@ -98,10 +112,22 @@ msgstr ""
98
112
  "Avvisami quando %s va %s più di %s nei precedenti %s (relativo a %s), \n"
99
113
  " purché il valore sia almeno %s"
100
114
 
101
- #: models/scout_plugin_trigger.rb:116
115
+ #: models/scout_plugin_trigger.rb:119
102
116
  msgid "Alert me when %s stays above %s for %s or more"
103
117
  msgstr "Avvisami quando %s sta sopra %s per %s o più"
104
118
 
119
+ #: models/scout_plugin_trigger.rb:224
120
+ msgid "%s exceeded %s, increasing to %s at %s"
121
+ msgstr "%s ha superato %s, salendo fino a %s alle %s"
122
+
123
+ #: models/scout_plugin_trigger.rb:232
124
+ msgid "%s went %s more than %s over the preceding %s minutes with respect to %s, and is now %s"
125
+ msgstr "%s è andato %s più di %s nei precendenti %s minuti rispetto a %s, e ora è %s"
126
+
127
+ #: models/scout_plugin_trigger.rb:241
128
+ msgid "%s exceeded %s, increasing to %s at %s, and is still continuing at %s as of %s"
129
+ msgstr "%s ha superato %s, salendo a %s alle %s, e sta continuando a %s alle %s"
130
+
105
131
  #: views/admin.layout.shtml:5
106
132
  msgid "\"Administration\""
107
133
  msgstr "\"Amministrazione\""
@@ -111,20 +137,20 @@ msgid "New customer"
111
137
  msgstr "Nuovo cliente"
112
138
 
113
139
  #: views/customer.shtml:8
114
- #: views/servant.shtml:6
140
+ #: views/server.shtml:6
115
141
  msgid "Edit"
116
142
  msgstr "Modifica"
117
143
 
118
144
  #: views/customer.shtml:21
119
145
  #: views/index.shtml:3
120
- #: views/master.layout.shtml:19
121
- msgid "Servants"
146
+ #: views/master.layout.shtml:21
147
+ msgid "Servers"
122
148
  msgstr "Server"
123
149
 
124
150
  #: views/customer.shtml:21
125
151
  #: views/customer.shtml:32
126
152
  #: views/customers.shtml:3
127
- #: views/plugin_instance.shtml:20
153
+ #: views/plugin_instance.shtml:33
128
154
  msgid "Add"
129
155
  msgstr "Aggiungi"
130
156
 
@@ -165,10 +191,18 @@ msgstr "Salva"
165
191
  msgid "Targets"
166
192
  msgstr "Destinazioni"
167
193
 
168
- #: views/master.layout.shtml:17
194
+ #: views/master.layout.shtml:19
169
195
  msgid "Home"
170
196
  msgstr "Home"
171
197
 
198
+ #: views/plugin_data.shtml:13
199
+ msgid "Compare"
200
+ msgstr "Confronta"
201
+
202
+ #: views/plugin_data.shtml:22
203
+ msgid "Show in same scale"
204
+ msgstr "Mostra nella stessa scala"
205
+
172
206
  #: views/plugin_edit.shtml:3
173
207
  msgid "Edit plugin \"%s\""
174
208
  msgstr "Modifica plugin \"%s\""
@@ -197,70 +231,105 @@ msgstr "Timeout"
197
231
  msgid "Update"
198
232
  msgstr "Aggiorna"
199
233
 
200
- #: views/plugin_instance.shtml:4
234
+ #: views/plugin_instance.shtml:5
201
235
  msgid "Edit settings"
202
236
  msgstr "Modifica impostazioni"
203
237
 
204
238
  #: views/plugin_instance.shtml:8
205
- #: views/trigger_edit.shtml:12
206
- msgid "Servant"
207
- msgstr "Server"
239
+ msgid "Last report"
240
+ msgstr "Ultimo report"
208
241
 
209
- #: views/plugin_instance.shtml:12
210
- #: views/servant.shtml:14
211
- #: views/trigger_edit.shtml:8
212
- msgid "Customer"
213
- msgstr "Cliente"
242
+ #: views/plugin_instance.shtml:19
243
+ msgid "Field"
244
+ msgstr "Campo"
214
245
 
215
246
  #: views/plugin_instance.shtml:20
247
+ msgid "Value"
248
+ msgstr "Valore"
249
+
250
+ #: views/plugin_instance.shtml:24
251
+ msgid "@labels[key]"
252
+ msgstr "@labels[key]"
253
+
254
+ #: views/plugin_instance.shtml:33
216
255
  msgid "Triggers"
217
256
  msgstr "Trigger"
218
257
 
219
- #: views/plugin_instance.shtml:25
258
+ #: views/plugin_instance.shtml:38
220
259
  msgid "edit"
221
260
  msgstr "modifica"
222
261
 
223
- #: views/servant.shtml:23
224
- #: views/servants.shtml:4
225
- msgid "New servant"
262
+ #: views/server.shtml:14
263
+ #: views/trigger_edit.shtml:8
264
+ msgid "Customer"
265
+ msgstr "Cliente"
266
+
267
+ #: views/server.shtml:23
268
+ #: views/servers.shtml:4
269
+ msgid "New server"
226
270
  msgstr "Nuovo server"
227
271
 
228
- #: views/servant.shtml:23
272
+ #: views/server.shtml:23
229
273
  msgid "for customer %s"
230
274
  msgstr "per il cliente %s"
231
275
 
232
- #: views/servant.shtml:31
276
+ #: views/server.shtml:31
277
+ msgid "Sites"
278
+ msgstr "Siti"
279
+
280
+ #: views/server.shtml:32
281
+ msgid "New site"
282
+ msgstr "Nuovo sito"
283
+
284
+ #: views/server.shtml:33
285
+ msgid "Add existing site"
286
+ msgstr "Aggiungi sito esistente"
287
+
288
+ #: views/server.shtml:39
289
+ #: views/server.shtml:62
290
+ msgid "Remove"
291
+ msgstr "Elimina"
292
+
293
+ #: views/server.shtml:44
233
294
  msgid "Plugins"
234
295
  msgstr "Plugin"
235
296
 
236
- #: views/servant.shtml:34
297
+ #: views/server.shtml:47
237
298
  msgid "Add plugin"
238
299
  msgstr "Aggiungi plugin"
239
300
 
240
- #: views/servant.shtml:49
241
- msgid "Remove"
242
- msgstr "Elimina"
243
-
244
- #: views/servant.shtml:57
301
+ #: views/server.shtml:70
245
302
  msgid "Servant %s"
246
303
  msgstr "Server %s"
247
304
 
248
- #: views/servant.shtml:60
305
+ #: views/server.shtml:73
249
306
  msgid "Last check"
250
307
  msgstr "Ultimo controllo"
251
308
 
252
- #: views/servant.shtml:65
309
+ #: views/server.shtml:78
253
310
  msgid "Manage resources"
254
311
  msgstr "Gestisci risorse"
255
312
 
256
- #: views/servant.shtml:68
313
+ #: views/server.shtml:81
257
314
  msgid "Resources"
258
315
  msgstr "Risorse"
259
316
 
260
- #: views/servant.shtml:81
317
+ #: views/server.shtml:94
261
318
  msgid "System details"
262
319
  msgstr "Dettagli sistema"
263
320
 
321
+ #: views/site_edit.shtml:3
322
+ msgid "Edit Site %s"
323
+ msgstr "Modifica Sito %s"
324
+
325
+ #: views/site_edit.shtml:4
326
+ msgid "Create new Site for %s"
327
+ msgstr "Crea nuovo Sito per %s"
328
+
329
+ #: views/site_edit.shtml:7
330
+ msgid "Choose site type"
331
+ msgstr "Scegli tipo di sito"
332
+
264
333
  #: views/trigger_edit.shtml:3
265
334
  msgid "Edit Trigger %s"
266
335
  msgstr "Modifica Trigger %s"
@@ -269,6 +338,10 @@ msgstr "Modifica Trigger %s"
269
338
  msgid "New Trigger for plugin %s"
270
339
  msgstr "Nuovo Trigger per il plugin %s"
271
340
 
341
+ #: views/trigger_edit.shtml:12
342
+ msgid "Server"
343
+ msgstr "Server"
344
+
272
345
  #: views/trigger_edit.shtml:16
273
346
  msgid "Plugin"
274
347
  msgstr "Plugin"
@@ -7,7 +7,7 @@
7
7
  msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Spider::Master 0.1\n"
10
- "POT-Creation-Date: 2011-05-09 17:37+0200\n"
10
+ "POT-Creation-Date: 2011-07-05 18:34+0200\n"
11
11
  "PO-Revision-Date: 2011-05-09 17:31+0200\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,20 +17,20 @@ msgstr ""
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
19
 
20
- #: controllers/master_controller.rb:50 views/customers.shtml:3
20
+ #: controllers/master_controller.rb:51 views/customers.shtml:3
21
21
  #: views/index.shtml:2 views/master.layout.shtml:20
22
22
  msgid "Customers"
23
23
  msgstr ""
24
24
 
25
- #: controllers/master_controller.rb:81
25
+ #: controllers/master_controller.rb:82
26
26
  msgid "No customer"
27
27
  msgstr ""
28
28
 
29
- #: controllers/master_controller.rb:83
29
+ #: controllers/master_controller.rb:84
30
30
  msgid "User can't access this customer"
31
31
  msgstr ""
32
32
 
33
- #: controllers/master_controller.rb:102
33
+ #: controllers/master_controller.rb:103
34
34
  msgid "User can't list customers"
35
35
  msgstr ""
36
36
 
@@ -134,12 +134,12 @@ msgstr ""
134
134
  msgid "New customer"
135
135
  msgstr ""
136
136
 
137
- #: views/customer.shtml:8 views/servant.shtml:6
137
+ #: views/customer.shtml:8 views/server.shtml:6
138
138
  msgid "Edit"
139
139
  msgstr ""
140
140
 
141
141
  #: views/customer.shtml:21 views/index.shtml:3 views/master.layout.shtml:21
142
- msgid "Servants"
142
+ msgid "Servers"
143
143
  msgstr ""
144
144
 
145
145
  #: views/customer.shtml:21 views/customer.shtml:32 views/customers.shtml:3
@@ -251,59 +251,59 @@ msgstr ""
251
251
  msgid "edit"
252
252
  msgstr ""
253
253
 
254
- #: views/servant.shtml:14 views/trigger_edit.shtml:8
254
+ #: views/server.shtml:14 views/trigger_edit.shtml:8
255
255
  msgid "Customer"
256
256
  msgstr ""
257
257
 
258
- #: views/servant.shtml:23 views/servants.shtml:4
259
- msgid "New servant"
258
+ #: views/server.shtml:23 views/servers.shtml:4
259
+ msgid "New server"
260
260
  msgstr ""
261
261
 
262
- #: views/servant.shtml:23
262
+ #: views/server.shtml:23
263
263
  msgid "for customer %s"
264
264
  msgstr ""
265
265
 
266
- #: views/servant.shtml:31
266
+ #: views/server.shtml:31
267
267
  msgid "Sites"
268
268
  msgstr ""
269
269
 
270
- #: views/servant.shtml:32
270
+ #: views/server.shtml:32
271
271
  msgid "New site"
272
272
  msgstr ""
273
273
 
274
- #: views/servant.shtml:33
274
+ #: views/server.shtml:33
275
275
  msgid "Add existing site"
276
276
  msgstr ""
277
277
 
278
- #: views/servant.shtml:39 views/servant.shtml:62
278
+ #: views/server.shtml:39 views/server.shtml:62
279
279
  msgid "Remove"
280
280
  msgstr ""
281
281
 
282
- #: views/servant.shtml:44
282
+ #: views/server.shtml:44
283
283
  msgid "Plugins"
284
284
  msgstr ""
285
285
 
286
- #: views/servant.shtml:47
286
+ #: views/server.shtml:47
287
287
  msgid "Add plugin"
288
288
  msgstr ""
289
289
 
290
- #: views/servant.shtml:70
290
+ #: views/server.shtml:70
291
291
  msgid "Servant %s"
292
292
  msgstr ""
293
293
 
294
- #: views/servant.shtml:73
294
+ #: views/server.shtml:73
295
295
  msgid "Last check"
296
296
  msgstr ""
297
297
 
298
- #: views/servant.shtml:78
298
+ #: views/server.shtml:78
299
299
  msgid "Manage resources"
300
300
  msgstr ""
301
301
 
302
- #: views/servant.shtml:81
302
+ #: views/server.shtml:81
303
303
  msgid "Resources"
304
304
  msgstr ""
305
305
 
306
- #: views/servant.shtml:94
306
+ #: views/server.shtml:94
307
307
  msgid "System details"
308
308
  msgstr ""
309
309
 
@@ -328,7 +328,7 @@ msgid "New Trigger for plugin %s"
328
328
  msgstr ""
329
329
 
330
330
  #: views/trigger_edit.shtml:12
331
- msgid "Servant"
331
+ msgid "Server"
332
332
  msgstr ""
333
333
 
334
334
  #: views/trigger_edit.shtml:16
@@ -1,7 +1,7 @@
1
1
  <div>
2
2
  <div>
3
3
  <label>Server:</label>
4
- <a href="<%=Spider::Master.url_for_servant(server_id)%>"><%=server_name%></a>
4
+ <a href="<%=Spider::Master.url_for_server(server_id)%>"><%=server_name%></a>
5
5
  </div>
6
6
  <div>
7
7
  <label>Plugin:</label>
@@ -18,12 +18,12 @@
18
18
  </tpl:pass>
19
19
  <tpl:pass sp:if="@customer && !@edit">
20
20
  <div class="list-title title-block">
21
- <h3>_(Servants):</h3><a sp:if="@user.can_manage_customers?" href="{ @customer.id }/servants/new" class="add manage">_(Add)</a>
21
+ <h3>_(Servers):</h3><a sp:if="@user.can_manage_customers?" href="{ @customer.id }/servers/new" class="add manage">_(Add)</a>
22
22
  </div>
23
23
  <table class="list-table">
24
- <tr sp:each="@customer.servants |servant|">
24
+ <tr sp:each="@customer.servers |server|">
25
25
  <td>
26
- <a href="{ customer.id }/servants/{ servant.id }">{ servant.name }</a>
26
+ <a href="{ customer.id }/server/{ server.id }">{ server.name }</a>
27
27
  </td>
28
28
  </tr>
29
29
  </table>
@@ -1,4 +1,3 @@
1
1
  <div>
2
- <a href="{ Master.url }/customers">_(Customers)</a>
3
- <a href="{ Master.url }/servants">_(Servants)</a>
2
+
4
3
  </div>