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-13 08:39 pm

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

Branch: refs/heads/release-1.21
Home: https://github.com/dreamwidth/dw-free
Commit: 367c501af2383ae3cf4f41ba5084f7ab43252cad
https://github.com/dreamwidth/dw-free/commit/367c501af2383ae3cf4f41ba5084f7ab43252cad
Author: Afuna <fu@dreamwidth.org>
Date: 2014-07-14 (Mon, 14 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 => ...}