Change redirect and text on commit

This commit is contained in:
Berkeley Martinez
2015-10-06 23:33:17 -07:00
parent 3273593b9c
commit f5966c0959
2 changed files with 2 additions and 4 deletions

View File

@ -204,7 +204,7 @@ export default function commit(app) {
msg = `No pledge found for user ${user.username}.`;
}
req.flash('errors', { msg });
return res.redirect('/commit');
return res.redirect(`/${user.username}`);
},
next
);

View File

@ -47,15 +47,13 @@ block content
.col-xs-12.col-sm-6.col-sm-offset-3.text-center
a#commit-btn-submit.btn.btn-block.btn-lg.signup-btn(href=donateUrl target='_blank') Commit (and open donate page)
.button-spacer
.spacer
if pledge
form.row(name='stop-pledge' action='/commit/stop-commitment' method='post')
.col-xs-12.col-sm-6.col-sm-offset-3.text-center
button.btn.btn-sm.btn-danger(name='submit' type='submit') Stop my pledge
.spacer
else
.row
.col-xs-12.col-sm-6.col-sm-offset-3.text-center
h4.col-xs-12.col-sm-6.col-sm-offset-3.text-center
a(href='/') Maybe later
.spacer
script.