scan-view: Add links from bug reporting forms to report & summary pages.

llvm-svn: 56427
This commit is contained in:
Daniel Dunbar 2008-09-22 03:08:32 +00:00
parent 2ef3142b92
commit ed4e3210da

View File

@ -260,6 +260,7 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
return (t.success, t.status) return (t.success, t.status)
def send_report_submit(self): def send_report_submit(self):
report = self.fields.get('report')
title = self.fields.get('title') title = self.fields.get('title')
description = self.fields.get('description') description = self.fields.get('description')
@ -274,11 +275,15 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
result = """ result = """
<head> <head>
<title>Report Submission</title> <title>Bug Submission</title>
<link rel="stylesheet" type="text/css" href="/scanview.css" /> <link rel="stylesheet" type="text/css" href="/scanview.css" />
</head> </head>
<body> <body>
<h1>Report Submission</h1> <h3>
<a href="/">Summary</a> >
<a href="/report-%(report)s.html">Report %(report)s</a> >
<a href="/report/%(report)s">File Bug</a> >
Submit</h3>
<form name="form" action=""> <form name="form" action="">
<table class="form"> <table class="form">
<tr><td> <tr><td>
@ -362,7 +367,7 @@ Line: %s
result = """<html> result = """<html>
<head> <head>
<title>File Report</title> <title>File Bug</title>
<link rel="stylesheet" type="text/css" href="/scanview.css" /> <link rel="stylesheet" type="text/css" href="/scanview.css" />
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
@ -380,7 +385,10 @@ function updateReporterOptions() {
} }
</script> </script>
<body onLoad="updateReporterOptions()"> <body onLoad="updateReporterOptions()">
<h1>File Report</h1> <h3>
<a href="/">Summary</a> >
<a href="/report-%(report)s.html">Report %(report)s</a> >
File Bug</h3>
<form name="form" action="/report_submit" method="post"> <form name="form" action="/report_submit" method="post">
<input type="hidden" name="report" value="%(report)s"> <input type="hidden" name="report" value="%(report)s">
@ -421,7 +429,7 @@ function updateReporterOptions() {
</table> </table>
</form> </form>
<iframe src="/report-%(report)s.html" width="100%%" height="70%%" <iframe src="/report-%(report)s.html" width="100%%" height="40%%"
scrolling="auto" frameborder="1"> scrolling="auto" frameborder="1">
<a href="/report-%(report)s.html">View Bug Report</a> <a href="/report-%(report)s.html">View Bug Report</a>
</iframe> </iframe>