github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2014-07-12 12:10 am

[dreamwidth/dw-free] 2d91de: Rename (new) success_ml to DW::Controller->render_...

Branch: refs/heads/develop
Home: https://github.com/dreamwidth/dw-free
Commit: 2d91ded0300e9f5fa4d0e381ad0b8deb5e6d7994
https://github.com/dreamwidth/dw-free/commit/2d91ded0300e9f5fa4d0e381ad0b8deb5e6d7994
Author: Afuna <fu@dreamwidth.org>
Date: 2014-07-12 (Sat, 12 Jul 2014)

Changed paths:
M cgi-bin/DW/Controller.pm
M cgi-bin/DW/Controller/Community.pm
M cgi-bin/DW/Controller/Rename.pm
R views/old-success.tt
A views/success-page.tt
M views/success.tt

Log Message:
-----------
Rename (new) success_ml to DW::Controller->render_success

We put back the original success_ml, which matches error_ml in form

But we now also have a new function DW::Controller->render_success which
has a signature which acts a lot like DW::Controller->render_template

The first argument is the page name (scope) where the success message is
defined -- it will probably match the page name in your
DW::Controller->render_template

This page should define a .success.title and a .success.message

The second argument (optional) is a hashref of any variables in the
.success.message

The third argument (optional) is a list of links in the form of:

{ text_ml => ..., url => ...}

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