From c0d2c4721216dccc21265bc86d78cc0901acda44 Mon Sep 17 00:00:00 2001 From: vinit Kumar Date: Wed, 14 May 2014 23:05:31 +0530 Subject: [PATCH 1/3] fix the twitter profile --- app/views/users/show.jade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/users/show.jade b/app/views/users/show.jade index 8091eda8..eb832382 100644 --- a/app/views/users/show.jade +++ b/app/views/users/show.jade @@ -6,12 +6,12 @@ block content - if (user.provider == 'twitter') img(class="profile-image", src="#{user.twitter.profile_image_url}") i.icon-twitter.icon-3x - ul - li #{user.name} - li #{user.twitter.description} - li a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} - li Friends on twitter: #{user.twitter.friends_count} - li Followers on Twitter #{user.twitter.followers_count} + div.container + div#{user.name} + div#{user.twitter.description} + div a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} + div Friends on twitter: #{user.twitter.friends_count} + div Followers on Twitter #{user.twitter.followers_count} - if (user.provider == 'facebook') img(class="profile-image", src='http://graph.facebook.com/'+user.facebook.id+'/picture') i.icon-facebook.icon-3x From 114a9055d51a36d9b7002fe52b5ac16fc6138325 Mon Sep 17 00:00:00 2001 From: vinit Kumar Date: Wed, 14 May 2014 23:13:41 +0530 Subject: [PATCH 2/3] one more try --- app/views/users/show.jade | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/users/show.jade b/app/views/users/show.jade index eb832382..141f3d9b 100644 --- a/app/views/users/show.jade +++ b/app/views/users/show.jade @@ -7,11 +7,11 @@ block content img(class="profile-image", src="#{user.twitter.profile_image_url}") i.icon-twitter.icon-3x div.container - div#{user.name} - div#{user.twitter.description} - div a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} - div Friends on twitter: #{user.twitter.friends_count} - div Followers on Twitter #{user.twitter.followers_count} + #{user.name} + #{user.twitter.description} + a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} + Friends on twitter: #{user.twitter.friends_count} + Followers on Twitter #{user.twitter.followers_count} - if (user.provider == 'facebook') img(class="profile-image", src='http://graph.facebook.com/'+user.facebook.id+'/picture') i.icon-facebook.icon-3x diff --git a/package.json b/package.json index 803792ec..f787fed1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nwitter", "description": "A twitter demo app in nodejs", - "version": "0.0.1-39", + "version": "0.0.1-48", "repository": "https://github.com/vinitcool76/node-twitter", "private": false, "author": "Vinit Kumar (http://vinitkumar.me)", From 170abd6178938c346513010fe8403e04cb66c729 Mon Sep 17 00:00:00 2001 From: vinit Kumar Date: Wed, 14 May 2014 23:24:20 +0530 Subject: [PATCH 3/3] more cleanup --- app/views/users/show.jade | 19 ++++++++++++------- package.json | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/views/users/show.jade b/app/views/users/show.jade index 141f3d9b..705c3de6 100644 --- a/app/views/users/show.jade +++ b/app/views/users/show.jade @@ -4,14 +4,19 @@ block content .well h3 Profile - if (user.provider == 'twitter') - img(class="profile-image", src="#{user.twitter.profile_image_url}") + img(class="profile-image img-thumbnail", src="#{user.twitter.profile_image_url}") i.icon-twitter.icon-3x div.container - #{user.name} - #{user.twitter.description} - a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} - Friends on twitter: #{user.twitter.friends_count} - Followers on Twitter #{user.twitter.followers_count} + div.col-md-6 + #{user.name} + #{user.twitter.description} + div.col-md-6 + div + a(href="https://twitter.com/#{user.username}", target="_blank")@#{user.username} + div + Friends on twitter: #{user.twitter.friends_count} + div + Followers on Twitter #{user.twitter.followers_count} - if (user.provider == 'facebook') img(class="profile-image", src='http://graph.facebook.com/'+user.facebook.id+'/picture') i.icon-facebook.icon-3x @@ -19,7 +24,7 @@ block content li #{user.name} li Facebook link: #{user.facebook.link} - if (user.provider == 'github') - img(class="profile-image", src=user.github.avatar_url) + img(class="profile-image img-thumbnail", src=user.github.avatar_url) i.icon-github.icon-3x div.user-info a(href="#{user.github.html_url}", target='_blank') @#{user.github.login} diff --git a/package.json b/package.json index f787fed1..1258b339 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nwitter", "description": "A twitter demo app in nodejs", - "version": "0.0.1-48", + "version": "0.0.1-49", "repository": "https://github.com/vinitcool76/node-twitter", "private": false, "author": "Vinit Kumar (http://vinitkumar.me)",