spiderfw 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +10 -0
- data/VERSION +1 -1
- data/apps/app_server/config/options.rb +2 -2
- data/apps/core/components/assets.rb +1 -5
- data/apps/core/components/widgets/month_calendar/month_calendar.shtml +3 -3
- data/apps/core/components/widgets/table/table.rb +2 -0
- data/apps/core/components/widgets/tabs/tabs.rb +9 -3
- data/apps/core/components/widgets/tabs/tabs.shtml +1 -1
- data/apps/master/_init.rb +3 -1
- data/apps/master/cmd.rb +1 -1
- data/apps/master/controllers/master_controller.rb +107 -103
- data/apps/master/controllers/scout_controller.rb +7 -7
- data/apps/master/controllers/{servant_controller.rb → server_controller.rb} +3 -3
- data/apps/master/data/locale/it/LC_MESSAGES/master.mo +0 -0
- data/apps/master/master.rb +4 -4
- data/apps/master/models/customer.rb +0 -3
- data/apps/master/models/installation.rb +14 -3
- data/apps/master/models/remote_log.rb +11 -0
- data/apps/master/models/scout_plugin_instance.rb +9 -9
- data/apps/master/models/scout_plugin_trigger.rb +2 -2
- data/apps/master/models/{servant.rb → server.rb} +6 -6
- data/apps/master/po/it/{spider_master.po → master.po} +127 -54
- data/apps/master/po/master.pot +23 -23
- data/apps/master/templates/email/alert.html.erb +1 -1
- data/apps/master/views/customer.shtml +3 -3
- data/apps/master/views/index.shtml +1 -2
- data/apps/master/views/installation.shtml +28 -16
- data/apps/master/views/master.layout.shtml +2 -1
- data/apps/master/views/plugin_data.shtml +1 -1
- data/apps/master/views/{servant.shtml → server.shtml} +14 -14
- data/apps/master/views/servers.shtml +11 -0
- data/apps/master/views/site_edit.shtml +1 -1
- data/apps/master/views/trigger_edit.shtml +4 -4
- data/apps/messenger/controllers/mixins/messenger_helper.rb +3 -3
- data/apps/servant/Gemfile +1 -0
- data/apps/servant/_init.rb +5 -1
- data/apps/servant/cmd.rb +14 -45
- data/apps/servant/config/options.rb +1 -0
- data/apps/servant/controllers/servant_controller.rb +7 -1
- data/apps/servant/lib/client.rb +55 -0
- data/apps/servant/servant.appspec +1 -1
- data/apps/servant/servant.rb +90 -0
- data/apps/worker/cmd.rb +9 -4
- data/apps/worker/worker.rb +11 -6
- data/blueprints/bin/spider +7 -0
- data/blueprints/home/config/config.yml +2 -3
- data/blueprints/home/init.rb +1 -1
- data/lib/spiderfw/app.rb +50 -2
- data/lib/spiderfw/cmd/commands/app.rb +22 -12
- data/lib/spiderfw/cmd/commands/config.rb +2 -1
- data/lib/spiderfw/config/configuration_editor.rb +7 -4
- data/lib/spiderfw/config/options/spider.rb +3 -1
- data/lib/spiderfw/controller/helpers/widget_helper.rb +6 -3
- data/lib/spiderfw/controller/mixins/http_mixin.rb +2 -1
- data/lib/spiderfw/controller/mixins/visual.rb +12 -10
- data/lib/spiderfw/env.rb +8 -1
- data/lib/spiderfw/home.rb +31 -4
- data/lib/spiderfw/http/server.rb +32 -14
- data/lib/spiderfw/model/mappers/mapper.rb +2 -2
- data/lib/spiderfw/model/mixins/tree.rb +7 -5
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +55 -2
- data/lib/spiderfw/model/storage/db/adapters/oracle.rb +80 -3
- data/lib/spiderfw/model/storage/db/connectors/jdbc_oracle.rb +3 -2
- data/lib/spiderfw/model/storage/db/connectors/oci8.rb +3 -2
- data/lib/spiderfw/model/storage/db/db_storage.rb +22 -0
- data/lib/spiderfw/setup/app_manager.rb +6 -2
- data/lib/spiderfw/site.rb +3 -1
- data/lib/spiderfw/spider.rb +145 -18
- data/lib/spiderfw/templates/blocks/parent_context.rb +3 -1
- data/lib/spiderfw/templates/template.rb +14 -5
- data/lib/spiderfw/widget/widget.rb +1 -0
- data/lib/spiderfw/widget/widget_attributes.rb +2 -2
- metadata +16 -16
- data/apps/master/po/spider_master.pot +0 -331
- data/apps/master/views/servants.shtml +0 -11
- data/apps/servant/lib/commands/discovery.rb +0 -0
- data/apps/servant/lib/resource.rb +0 -14
- data/apps/servant/lib/resources/db/mysql.rb +0 -35
- data/apps/servant/lib/resources/db.rb +0 -55
- data/apps/servant/lib/servant.rb +0 -88
- 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 :
|
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.
|
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.
|
272
|
+
obj.server.admins.each do |server_adm|
|
273
273
|
obj.admins << ScoutPluginInstance::Admins.new(
|
274
|
-
:admin =>
|
275
|
-
:receive_notifications =>
|
276
|
-
:manage =>
|
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.
|
292
|
-
obj.
|
293
|
-
obj.
|
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.
|
251
|
-
server_name = self.plugin_instance.
|
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
|
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 => :
|
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 => :
|
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 => :
|
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, :
|
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 <<
|
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:
|
10
|
-
"PO-Revision-Date:
|
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:
|
19
|
+
#: controllers/master_controller.rb:51
|
19
20
|
#: views/customers.shtml:3
|
20
21
|
#: views/index.shtml:2
|
21
|
-
#: views/master.layout.shtml:
|
22
|
+
#: views/master.layout.shtml:20
|
22
23
|
msgid "Customers"
|
23
24
|
msgstr "Clienti"
|
24
25
|
|
25
|
-
#: controllers/master_controller.rb:
|
26
|
+
#: controllers/master_controller.rb:82
|
26
27
|
msgid "No customer"
|
27
28
|
msgstr "Nessun cliente"
|
28
29
|
|
29
|
-
#: controllers/master_controller.rb:
|
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:
|
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/
|
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:
|
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:
|
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:
|
62
|
+
#: models/scout_plugin_trigger.rb:15
|
50
63
|
msgid "Up"
|
51
64
|
msgstr "Su"
|
52
65
|
|
53
|
-
#: models/scout_plugin_trigger.rb:
|
66
|
+
#: models/scout_plugin_trigger.rb:16
|
54
67
|
msgid "Down"
|
55
68
|
msgstr "Giù"
|
56
69
|
|
57
|
-
#: models/scout_plugin_trigger.rb:
|
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:
|
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:
|
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:
|
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:
|
89
|
+
#: models/scout_plugin_trigger.rb:27
|
77
90
|
msgid "normal"
|
78
91
|
msgstr "normale"
|
79
92
|
|
80
|
-
#: models/scout_plugin_trigger.rb:
|
93
|
+
#: models/scout_plugin_trigger.rb:28
|
81
94
|
msgid "fired"
|
82
95
|
msgstr "scattato"
|
83
96
|
|
84
|
-
#: models/scout_plugin_trigger.rb:
|
85
|
-
#: models/scout_plugin_trigger.rb:
|
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:
|
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:
|
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:
|
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/
|
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:
|
121
|
-
msgid "
|
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:
|
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:
|
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:
|
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
|
-
|
206
|
-
|
207
|
-
msgstr "Server"
|
239
|
+
msgid "Last report"
|
240
|
+
msgstr "Ultimo report"
|
208
241
|
|
209
|
-
#: views/plugin_instance.shtml:
|
210
|
-
|
211
|
-
|
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:
|
258
|
+
#: views/plugin_instance.shtml:38
|
220
259
|
msgid "edit"
|
221
260
|
msgstr "modifica"
|
222
261
|
|
223
|
-
#: views/
|
224
|
-
#: views/
|
225
|
-
msgid "
|
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/
|
272
|
+
#: views/server.shtml:23
|
229
273
|
msgid "for customer %s"
|
230
274
|
msgstr "per il cliente %s"
|
231
275
|
|
232
|
-
#: views/
|
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/
|
297
|
+
#: views/server.shtml:47
|
237
298
|
msgid "Add plugin"
|
238
299
|
msgstr "Aggiungi plugin"
|
239
300
|
|
240
|
-
#: views/
|
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/
|
305
|
+
#: views/server.shtml:73
|
249
306
|
msgid "Last check"
|
250
307
|
msgstr "Ultimo controllo"
|
251
308
|
|
252
|
-
#: views/
|
309
|
+
#: views/server.shtml:78
|
253
310
|
msgid "Manage resources"
|
254
311
|
msgstr "Gestisci risorse"
|
255
312
|
|
256
|
-
#: views/
|
313
|
+
#: views/server.shtml:81
|
257
314
|
msgid "Resources"
|
258
315
|
msgstr "Risorse"
|
259
316
|
|
260
|
-
#: views/
|
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"
|
data/apps/master/po/master.pot
CHANGED
@@ -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
|
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:
|
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:
|
25
|
+
#: controllers/master_controller.rb:82
|
26
26
|
msgid "No customer"
|
27
27
|
msgstr ""
|
28
28
|
|
29
|
-
#: controllers/master_controller.rb:
|
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:
|
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/
|
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 "
|
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/
|
254
|
+
#: views/server.shtml:14 views/trigger_edit.shtml:8
|
255
255
|
msgid "Customer"
|
256
256
|
msgstr ""
|
257
257
|
|
258
|
-
#: views/
|
259
|
-
msgid "New
|
258
|
+
#: views/server.shtml:23 views/servers.shtml:4
|
259
|
+
msgid "New server"
|
260
260
|
msgstr ""
|
261
261
|
|
262
|
-
#: views/
|
262
|
+
#: views/server.shtml:23
|
263
263
|
msgid "for customer %s"
|
264
264
|
msgstr ""
|
265
265
|
|
266
|
-
#: views/
|
266
|
+
#: views/server.shtml:31
|
267
267
|
msgid "Sites"
|
268
268
|
msgstr ""
|
269
269
|
|
270
|
-
#: views/
|
270
|
+
#: views/server.shtml:32
|
271
271
|
msgid "New site"
|
272
272
|
msgstr ""
|
273
273
|
|
274
|
-
#: views/
|
274
|
+
#: views/server.shtml:33
|
275
275
|
msgid "Add existing site"
|
276
276
|
msgstr ""
|
277
277
|
|
278
|
-
#: views/
|
278
|
+
#: views/server.shtml:39 views/server.shtml:62
|
279
279
|
msgid "Remove"
|
280
280
|
msgstr ""
|
281
281
|
|
282
|
-
#: views/
|
282
|
+
#: views/server.shtml:44
|
283
283
|
msgid "Plugins"
|
284
284
|
msgstr ""
|
285
285
|
|
286
|
-
#: views/
|
286
|
+
#: views/server.shtml:47
|
287
287
|
msgid "Add plugin"
|
288
288
|
msgstr ""
|
289
289
|
|
290
|
-
#: views/
|
290
|
+
#: views/server.shtml:70
|
291
291
|
msgid "Servant %s"
|
292
292
|
msgstr ""
|
293
293
|
|
294
|
-
#: views/
|
294
|
+
#: views/server.shtml:73
|
295
295
|
msgid "Last check"
|
296
296
|
msgstr ""
|
297
297
|
|
298
|
-
#: views/
|
298
|
+
#: views/server.shtml:78
|
299
299
|
msgid "Manage resources"
|
300
300
|
msgstr ""
|
301
301
|
|
302
|
-
#: views/
|
302
|
+
#: views/server.shtml:81
|
303
303
|
msgid "Resources"
|
304
304
|
msgstr ""
|
305
305
|
|
306
|
-
#: views/
|
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 "
|
331
|
+
msgid "Server"
|
332
332
|
msgstr ""
|
333
333
|
|
334
334
|
#: views/trigger_edit.shtml:16
|
@@ -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>_(
|
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.
|
24
|
+
<tr sp:each="@customer.servers |server|">
|
25
25
|
<td>
|
26
|
-
<a href="{ customer.id }/
|
26
|
+
<a href="{ customer.id }/server/{ server.id }">{ server.name }</a>
|
27
27
|
</td>
|
28
28
|
</tr>
|
29
29
|
</table>
|