Skip to content

Commit

Permalink
Merge pull request #65 from vinitkumar/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
Vinit Kumar committed May 15, 2014
2 parents 37dd9b6 + 170abd6 commit 565c6ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions app/views/users/show.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ 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
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.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
ul
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}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nwitter",
"description": "A twitter demo app in nodejs",
"version": "0.0.1-39",
"version": "0.0.1-49",
"repository": "https://github.com/vinitcool76/node-twitter",
"private": false,
"author": "Vinit Kumar <[email protected]> (http://vinitkumar.me)",
Expand Down

0 comments on commit 565c6ea

Please sign in to comment.