scan-view: Add more information to default bug description and use

iframe to embed bug view (for easy reference).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56406 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2008-09-21 19:08:54 +00:00
Родитель a05131a971
Коммит 25b51d0699
1 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -238,9 +238,16 @@ Submission in progress."""%locals()
return self.send_internal_error('Invalid report.')
initialTitle = keys.get('DESC','')
initialDescription = 'Bug generated by the clang static analyzer.'
initialDescription = """\
Bug generated by the clang static analyzer.
Description: %s
File: %s
Line: %s
"""%(initialTitle,
keys.get('FILE','<unknown>'),
keys.get('LINE','<unknown>'))
keysAndValues = '\n'.join(['<b>%s</b>: %s<br>'%(k,v) for k,v in keys.items()])
reporterSelections = []
reporterOptions = []
@ -276,7 +283,6 @@ function updateReporterOptions() {
</script>
<body>
<h1>File Report</h1>
%(keysAndValues)s
<hr>
<form name="form" action="/report_submit" method="post">
Title:
@ -295,6 +301,12 @@ Method: <select id="reporter" name="reporter" onChange="updateReporterOptions()"
<hr>
<input type="submit" name="Submit" value="Submit">
</form>
<iframe src="/report-%(report)s.html#EndPath" width="100%%" height="40%%"
scrolling="auto" frameborder="1">
<a href="/report-%(report)s.html#EndPath">View Bug Report</a>
</iframe>
</body>
</html>"""%locals()
return self.send_string(result)