first release
This commit is contained in:
10
app/controllers/serverchecker_controller.rb
Normal file
10
app/controllers/serverchecker_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class ServercheckerController < ApplicationController
|
||||
def show
|
||||
require "Tools"
|
||||
if Tools.mc_running?
|
||||
send_file "app/assets/images/on.png", :type => "image/png", :disposition => "inline"
|
||||
else
|
||||
send_file "app/assets/images/off.png", :type => "image/png", :disposition => "inline"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user