Module: ServersHelper

Defined in:
lib/six-updater-web/app/helpers/servers_helper.rb

Instance Method Summary collapse

Instance Method Details

#exec3_column(record, b = nil) ⇒ Object



2
3
4
# File 'lib/six-updater-web/app/helpers/servers_helper.rb', line 2

def exec3_column(record, b = nil)
  link_to "Run", "/main/index?commit=exec&server=#{record.id}"
end

#port_column(record, b = nil) ⇒ Object



10
11
12
# File 'lib/six-updater-web/app/helpers/servers_helper.rb', line 10

def port_column(record, b = nil)
  record.port.to_s if record.port
end

#remote_column(record, b = nil) ⇒ Object



6
7
8
# File 'lib/six-updater-web/app/helpers/servers_helper.rb', line 6

def remote_column(record, b = nil)
  link_to "nfo", "http://stats.six-updater.net/#{record.rema}/#{record.id}", :target => "_blank"
end