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 10:17 pm

[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 => ...}


Commit: dcc0cae94752ad13dc4599c068e80278a5484fdc
https://github.com/dreamwidth/dw-free/commit/dcc0cae94752ad13dc4599c068e80278a5484fdc
Author: Mark Smith <mark@qq.is>
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:
-----------
Merge pull request #800 from afuna/render_success

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


Compare: https://github.com/dreamwidth/dw-free/compare/9f44d0c03f65...dcc0cae94752