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} ) {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org