2013-10-16 11:22:33 +00:00
|
|
|
class PingController < ApplicationController
|
|
|
|
|
|
2013-10-15 13:57:15 +00:00
|
|
|
layout "ping.jnlp"
|
|
|
|
|
|
|
|
|
|
JNLP = 'application/x-java-jnlp-file'
|
2013-10-16 11:22:33 +00:00
|
|
|
|
|
|
|
|
def index
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'ping', :layout => false
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def at
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'pingat.jnlp', :content_type => JNLP
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def cc
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'pingcc.jnlp', :content_type => JNLP
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def no
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'pingno.jnlp', :content_type => JNLP
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def tw
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'pingtw.jnlp', :content_type => JNLP
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def vz
|
2013-10-15 13:57:15 +00:00
|
|
|
render 'pingvz.jnlp', :content_type => JNLP
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|
|
|
|
|
|
2013-12-17 23:55:10 +00:00
|
|
|
def icon
|
|
|
|
|
redirect_to '/assets/isps/ping-icon.jpg'
|
|
|
|
|
#send_file Rails.root.join("app", "assets", "images", "isps", "ping-icon.jpg"), type: "image/jpg", disposition: "inline"
|
|
|
|
|
end
|
|
|
|
|
|
2013-10-16 11:22:33 +00:00
|
|
|
end
|