class NetworkRestriction
Public Instance Methods
layout()
click to toggle source
# File Views/Network/Restriction.rb, line 4 def layout @update = true @functions_need = [:internet] @visible = Persons.center && Persons.center.login_name == 'man' gui_vbox do show_html :state show_button :remove_restriction, :restrict_info1, :restrict_info2 end end
rpc_update( session )
click to toggle source
# File Views/Network/Restriction.rb, line 15 def rpc_update( session ) if restricted = Captive.restricted reply( :update, :state => "Restricted internet, only allowed for:<br><pre>#{ restricted }</pre>" ) else reply( :update, :state => 'No restriction in place') end end