Parent

Class Index [+]

Quicksearch

TaskJuggler::WelcomePage

Public Class Methods

get_instance(config, options) click to toggle source
    # File lib/daemon/WelcomePage.rb, line 25
25:     def self.get_instance(config, options)
26:       self.new(config, *options)
27:     end
new(config, *options) click to toggle source
    # File lib/daemon/WelcomePage.rb, line 21
21:     def initialize(config, *options)
22:       super
23:     end

Public Instance Methods

do_GET(req, res) click to toggle source
    # File lib/daemon/WelcomePage.rb, line 29
29:     def do_GET(req, res)
30:       @req = req
31:       @res = res
32:       begin
33:         generateWelcomePage
34:       #rescue
35:       end
36:     end

Private Instance Methods

generateWelcomePage() click to toggle source
    # File lib/daemon/WelcomePage.rb, line 40
40:     def generateWelcomePage()
41:       text = == Welcome to TaskJuggler ==----This is the welcome page of your TaskJuggler built-in web server.To access your loaded TaskJuggler projects, click [/taskjuggler here].If you are seeing this page instead of the site you expected, please contactthe administrator of the site involved. Try sending mail to<webmaster@domain>.Although this site is running the TaskJuggler software it almost certainly hasno other connection to the TaskJuggler project, so please do not send mailabout this site or its contents to the TaskJuggler authors. If you do, yourmessage will be ignored.You can use the following links to learn more about TaskJuggler:* [#{AppConfig.contact} The TaskJuggler web site]* [#{AppConfig.contact+ "/tj3/manual/index.html"} User Manual]----#{AppConfig.softwareName} v#{AppConfig.version}- Copyright (c) #{AppConfig.copyright.join(', ')}by #{AppConfig.authors.join(', ')}
42: 
43:       rt = RichText.new(text)
44:       rti = rt.generateIntermediateFormat
45:       rti.sectionNumbers = false
46:       page = HTMLDocument.new
47:       page.generateHead("Welcome to TaskJuggler")
48:       page << rti.to_html
49:       @res['content-type'] = 'text/html'
50:       @res.body = page.to_s
51:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.