six-updater-web 0.21.3 → 0.21.4
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -150,8 +150,22 @@ class MainController < ApplicationController
|
|
150
150
|
end
|
151
151
|
|
152
152
|
if params[:system]
|
153
|
-
@beta =
|
154
|
-
|
153
|
+
@beta = case params[:system][:beta]
|
154
|
+
when "default"
|
155
|
+
nil
|
156
|
+
when "true"
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
@server_bool = case params[:system][:server_bool]
|
162
|
+
when "default"
|
163
|
+
nil
|
164
|
+
when "true"
|
165
|
+
true
|
166
|
+
else
|
167
|
+
false
|
168
|
+
end
|
155
169
|
@autoskip = (params[:system][:autoskip] == "1")
|
156
170
|
@inweb = (params[:system][:inweb] == "1")
|
157
171
|
end
|
@@ -213,14 +227,14 @@ class MainController < ApplicationController
|
|
213
227
|
end
|
214
228
|
|
215
229
|
if setting
|
216
|
-
setting.beta = @beta
|
217
|
-
setting.server = @server_bool
|
230
|
+
setting.beta = @beta unless @beta.nil?
|
231
|
+
setting.server = @server_bool unless @server_bool.nil?
|
218
232
|
@msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
219
233
|
else
|
220
234
|
if preset.appsetting
|
221
235
|
setting = preset.appsetting
|
222
|
-
setting.beta = @beta
|
223
|
-
setting.server = @server_bool
|
236
|
+
setting.beta = @beta unless @beta.nil?
|
237
|
+
setting.server = @server_bool unless @server_bool.nil?
|
224
238
|
@msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
225
239
|
end
|
226
240
|
end
|
@@ -31,35 +31,34 @@
|
|
31
31
|
= record_select_field 'setting', @setting, :controller => "Appsettings"
|
32
32
|
= submit_tag "Edit setting"
|
33
33
|
%p
|
34
|
-
= check_box :system, :beta, {:checked => @beta}
|
35
34
|
%a{:title => "Enable beta mod and mode" }
|
36
35
|
Beta
|
36
|
+
= select( "system", "beta", ["default", "true", "false"], {:selected => @beta.to_s})
|
37
37
|
|
38
|
-
= check_box :system, :server_bool, {:checked => @server_bool}
|
39
38
|
%a{:title => "Enable (dedicated) server mode" }
|
40
39
|
Server
|
41
|
-
|
42
|
-
= check_box :system, :autoskip, {:checked => @autoskip}
|
40
|
+
= select( "system", "server_bool", ["default", "true", "false"], {:selected => @server_bool.to_s})
|
43
41
|
%a{:title => "Only update mods whos online version doesnt match local" }
|
44
42
|
Autoskip
|
43
|
+
= check_box :system, :autoskip, {:checked => @autoskip}
|
45
44
|
|
46
|
-
= check_box :system, :inweb, {:checked => @inweb}
|
47
45
|
%a{:title => "Display updater output into ajax-refreshed web-page (Handy for remote-management)" }
|
48
|
-
|
46
|
+
Remote
|
47
|
+
= check_box :system, :inweb, {:checked => @inweb}
|
49
48
|
%p
|
50
49
|
= submit_tag "Execute"
|
51
50
|
|
52
51
|
= submit_tag "Save"
|
53
52
|
|
54
|
-
= submit_tag "Edit Userconfig"
|
55
|
-
|
56
|
-
= submit_tag "Server Mod check"
|
57
|
-
%p
|
58
53
|
= submit_tag "Stop Game"
|
59
54
|
|
60
55
|
= submit_tag "Reset Skip Status"
|
61
|
-
|
56
|
+
%p
|
62
57
|
= submit_tag "Show status"
|
58
|
+
|
59
|
+
= submit_tag "Server Mod check"
|
60
|
+
|
61
|
+
= submit_tag "Edit Userconfig"
|
63
62
|
%strong Logs
|
64
63
|
- form_tag :action => :fetch do
|
65
64
|
%p
|