properly describe saving incident reports. closes #1974

This commit is contained in:
Leif Ryge 2013-05-19 07:31:43 +00:00
parent 705c47f9e9
commit 30924a506c
3 changed files with 4 additions and 4 deletions

View File

@ -4377,7 +4377,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
d = self.POST("/report_incident", details="eek")
def _done(res):
self.failIfIn("<html>", res)
self.failUnlessIn("Thank you for your report!", res)
self.failUnlessIn("An incident report has been saved", res)
d.addCallback(_done)
return d

View File

@ -123,7 +123,7 @@ class IncidentReporter(RenderMixin, rend.Page):
details=get_arg(req, "details", ""),
level=log.WEIRD, umid="LkD9Pw")
req.setHeader("content-type", "text/plain")
return "Thank you for your report!"
return "An incident report has been saved to logs/incidents/ in the node directory."
SPACE = u"\u00A0"*2
@ -383,6 +383,6 @@ class Root(rend.Page):
T.input(type="hidden", name="t", value="report-incident"),
"What went wrong?"+SPACE,
T.input(type="text", name="details"), SPACE,
T.input(type="submit", value=u"Report \u00BB"),
T.input(type="submit", value=u"Save \u00BB"),
]]
return T.div[form]

View File

@ -121,7 +121,7 @@
<hr/>
<div class="nav-header">
<ul class="nav nav-list">
<li class="nav-header">Report an Incident</li>
<li class="nav-header">Save incident report</li>
<li><div n:render="incident_button" /></li>
</ul>
</div>