fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-01-23 02:43 am

[dw-nonfree] Have a 'make another suggestion' link on the success page

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/33a2d349e396]

http://bugs.dwscoalition.org/show_bug.cgi?id=3404

Additional links leading back to the page to submit another suggestion, or
to the suggestions community, after submitting a suggestion.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/site/suggest.bml
--------------------------------------------------------------------------------
diff -r 5e3ddd9e2911 -r 33a2d349e396 htdocs/site/suggest.bml
--- a/htdocs/site/suggest.bml	Thu Jan 06 16:01:43 2011 +0800
+++ b/htdocs/site/suggest.bml	Sun Jan 23 10:43:00 2011 +0800
@@ -155,8 +155,15 @@ body<=
             my $err = LJ::Protocol::error_message( $response || $response2 );
             return LJ::bad_input( $err );
         } else {
-            my $commname = $destination->ljuser_display; 
-            return "<h2>Success!</h2>\n<p>Your suggestion has been submitted to the moderation queue of $commname. Once approved, it will appear in the community for discussion and evaluation.";
+            my $commname = $destination->ljuser_display;
+            my $commlink = $destination->journal_base;
+            my $ret = "<h2>Success!</h2>\n"
+                    . "<p>Your suggestion has been submitted to the moderation queue of $commname."
+                    . " Once approved, it will appear in the community for discussion and evaluation.</p>\n"
+                    . "<p>From here you can:</p><ul>\n"
+                    . "<li><a href='$LJ::SITEROOT/site/suggest'>Make another suggestion</a></li>\n"
+                    . "<li><a href='$commlink'>View the suggestions community</a></li></ul>\n";
+            return $ret;
         }
 
     } elsif ( LJ::did_post() && $POST{preview} ) {
--------------------------------------------------------------------------------
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

[personal profile] matgb 2011-01-25 06:29 pm (UTC)(link)
Yay!

I likes it when mine get through, even if they are tiny little workflow ones.