This class is a specialized RichTextFunctionHandler that generates a link to another report. It's not available on all output formats.
Return a HTML tree for the report.
# File lib/taskjuggler/RichText/RTFReportLink.rb, line 38 def to_html(args) report = checkArgs(args) # The URL for interactive reports is different than for static reports. if report.interactive? # The project and report ID must be provided as query. url = "taskjuggler?project=#{@project['projectid']};" + "report=#{report.fullId}" if args['attributes'] qEx = SimpleQueryExpander.new(args['attributes'], @query, @sourceFileInfo) url += ";attributes=" + URLParameter.encode(qEx.expand) end else # The report name just gets a '.html' extension. url = report.name + ".html" end a = XMLElement.new('a', 'href'=> url) a << XMLText.new(report.name) a end
Generated with the Darkfish Rdoc Generator 2.