Parent

Class Index [+]

Quicksearch

TaskJuggler::WelcomePage

Public Class Methods

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

Public Instance Methods

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

Private Instance Methods

generateWelcomePage() click to toggle source
    # File lib/taskjuggler/daemon/WelcomePage.rb, line 41
41:     def generateWelcomePage()
42:       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(', ')}
43: 
44:       rt = RichText.new(text)
45:       rti = rt.generateIntermediateFormat
46:       rti.sectionNumbers = false
47:       page = HTMLDocument.new
48:       page.generateHead("Welcome to TaskJuggler")
49:       page << rti.to_html
50:       @res['content-type'] = 'text/html'
51:       @res.body = page.to_s
52:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.