ticket_feedback_link { text "Feedback" } { module_key " " }What it does:
returns the html for a link into the ticket system for page feedbackDefined in: /web/philip/tcl/ticket-defs.tcl
- module_key is the primary key for the module in the acs_modules table. If no module key is supplied, we see if a module has been registered to the URL that has been called.
- text is the text to display as the link.
We need to map module_key to project_id to get this to work properly.
Source code:
set ticket_server [ad_parameter TicketServer module-manager "www.arsdigita.com"] if ![empty_string_p $ticket_server] { set ticket_server "http://$ticket_server" } if [empty_string_p $module_key] { set module_key ticket #[ad_module_name_from_url] } return "<a href=\"$ticket_server/ticket/issue-new?mapping_key=[ns_urlencode $module_key]&from_host=[ns_urlencode [ns_conn location]]&from_url=[ns_urlencode [ns_conn url]]&fq_len=[string length [ns_conn query]]&from_query=[ns_urlencode [ns_conn query]]\">$text</a>"