diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-19 16:12:21 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-19 16:12:21 +0100 |
commit | 7b06ce45180a5b2c0dd0095cd1a60ec974b46aa5 (patch) | |
tree | 39d34044b9879d1bd22df1cc9005fcbe6a0afb00 /reach_reports/reach_application.rb | |
parent | bba009c7c59655392236e1cdaf873117bb59600f (diff) |
aa suport, rdf support
Diffstat (limited to 'reach_reports/reach_application.rb')
-rwxr-xr-x | reach_reports/reach_application.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/reach_reports/reach_application.rb b/reach_reports/reach_application.rb index 4187c1b..fd77078 100755 --- a/reach_reports/reach_application.rb +++ b/reach_reports/reach_application.rb @@ -20,8 +20,8 @@ get '/reach_report' do if request.env['HTTP_ACCEPT'] =~ /text\/html/ content_type "text/html" related_links = - "All validations: "+$sinatra.url_for("/",:full)+"\n"+ - "Validation reporting: "+$sinatra.url_for("/report",:full) + "All validations: "+url_for("/",:full)+"\n"+ + "Validation reporting: "+url_for("/report",:full) description = "A list of all suported REACH reporting types." OpenTox.text_to_html uri_list,related_links,description @@ -37,7 +37,7 @@ get '/reach_report/:type' do if request.env['HTTP_ACCEPT'] =~ /text\/html/ content_type "text/html" related_links = - "All REACH reporting types: "+$sinatra.url_for("/reach_report",:full) + "All REACH reporting types: "+url_for("/reach_report",:full) description = "A list of "+type+" reports." post_params = "" @@ -95,7 +95,7 @@ get '/reach_report/:type/:id' do content_type "text/html" related_links = "Open report in QMRF editor: "+rep.report_uri+"/editor"+"\n"+ - "All "+type+" reports: "+$sinatra.url_for("/reach_report/"+type,:full) + "All "+type+" reports: "+url_for("/reach_report/"+type,:full) description = "A QMRF report." OpenTox.text_to_html rep.to_yaml,related_links,description |