From 30924a506ced5c1f06e034b4f1482217746255ca Mon Sep 17 00:00:00 2001
From: Leif Ryge <leif@synthesize.us>
Date: Sun, 19 May 2013 07:31:43 +0000
Subject: [PATCH] properly describe saving incident reports. closes #1974

---
 src/allmydata/test/test_web.py  | 2 +-
 src/allmydata/web/root.py       | 4 ++--
 src/allmydata/web/welcome.xhtml | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py
index 3b12549c..9db671c6 100644
--- a/src/allmydata/test/test_web.py
+++ b/src/allmydata/test/test_web.py
@@ -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
 
diff --git a/src/allmydata/web/root.py b/src/allmydata/web/root.py
index b4b7a85c..03ff87f0 100644
--- a/src/allmydata/web/root.py
+++ b/src/allmydata/web/root.py
@@ -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]
diff --git a/src/allmydata/web/welcome.xhtml b/src/allmydata/web/welcome.xhtml
index 9e1228e7..0b796b22 100644
--- a/src/allmydata/web/welcome.xhtml
+++ b/src/allmydata/web/welcome.xhtml
@@ -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>
-- 
2.45.2