Skip to content

Commit

Permalink
Merge branch 'master' of github.com:junkafarian/watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
junkafarian committed Feb 18, 2012
2 parents 7ef2730 + 2017547 commit f98aad2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions public/css/register.css
@@ -1,4 +1,5 @@
#message{ #message{
width: 100%; width: 100%;
height: 180px; height: 180px;
padding: 10px;
} }
8 changes: 8 additions & 0 deletions public/css/style.css
Expand Up @@ -395,6 +395,10 @@ form input.long{
font-weight: bold; font-weight: bold;
} }


#friends{
margin: 30px 0;
}

#friends ul, #friends li{ #friends ul, #friends li{
list-style: none; list-style: none;
margin: 0; margin: 0;
Expand All @@ -404,6 +408,10 @@ form input.long{
vertical-align: top; vertical-align: top;
} }


#friends li{
margin: 2px 0;
}

#friends .pic{ #friends .pic{
display: block; display: block;
} }
Expand Down
6 changes: 2 additions & 4 deletions routes/index.js
Expand Up @@ -156,6 +156,7 @@ exports.adduser = function(req, res){
var usr = new models.User(user_data.username, user_data.password, key, user_data.email, [user_data.contact01, user_data.contact02, user_data.contact03, user_data.contact04, user_data.contact05]); var usr = new models.User(user_data.username, user_data.password, key, user_data.email, [user_data.contact01, user_data.contact02, user_data.contact03, user_data.contact04, user_data.contact05]);
users.add_user(usr); users.add_user(usr);



request('https://api.twitter.com/1/users/lookup.json?screen_name='+user_data.twitter, function (error, response, body) { request('https://api.twitter.com/1/users/lookup.json?screen_name='+user_data.twitter, function (error, response, body) {
if (!error && response.statusCode == 200) { if (!error && response.statusCode == 200) {
var tid = JSON.parse(body)[0].id; var tid = JSON.parse(body)[0].id;
Expand All @@ -164,11 +165,8 @@ exports.adduser = function(req, res){
updateTwitterStream(); updateTwitterStream();
} }
}) })
res.redirect('/signedin');



res.render('generic_message', {
locals:{'message': 'registered! This is your secret key to update your status from anywhere else:<br><h2>'+key+'</h2><br>'}
});
} }




Expand Down
2 changes: 1 addition & 1 deletion views/registration.mustache
Expand Up @@ -19,7 +19,7 @@


<div class="row clearfix"> <div class="row clearfix">
<label class="fullWidth" for="message">Your emergency message:</label> <label class="fullWidth" for="message">Your emergency message:</label>
<textarea class="fullWidth" id="message" name="user[email]"></textarea> <textarea placeholder="This is an emergency alert - XXX has gone missing. Please follow these instructions:" class="fullWidth" id="message" name="user[email]"></textarea>
</div> </div>


<p>If we think you are in danger, we will send your message to the following email addresses:</p> <p>If we think you are in danger, we will send your message to the following email addresses:</p>
Expand Down

0 comments on commit f98aad2

Please sign in to comment.