Skip to content

Commit

Permalink
change the message for already_in_team
Browse files Browse the repository at this point in the history
  • Loading branch information
outsideris committed Nov 16, 2015
1 parent a78dbcc commit 2276353
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,13 @@ background: #eeeeee;
font-weight: 700;
font-size: 25px;
}

a {
color: #92BCF2;
font-weight: 700;
}

a:visited,
a:hover {
color: #7EB6FF;
}
7 changes: 6 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ router.post('/invite', function(req, res) {
} else {
var error = body.error;
if (error === 'already_invited' || error === 'already_in_team') {
error = 'You are already invited.'
res.render('result', {
community: config.community,
message: 'Success! You were already invited.<br>' +
'Visit to <a href="https://'+ config.slackUrl +'">'+ config.community +'</a>'
});
return;
} else if (error === 'invalid_email') {
error = 'The email you entered is an invalid email.'
} else if (error === 'invalid_auth') {
Expand Down
2 changes: 1 addition & 1 deletion views/result.jade
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ html
.header
h1
strong #{community}
h2(class="#{isFailed?'error':''}")= message
h2(class="#{isFailed?'error':''}") !{message}

0 comments on commit 2276353

Please sign in to comment.