Browse files

Added twitterlink

  • Loading branch information...
1 parent 4b5501c commit 1c5de1e079fbee4fe91ec20b0533c8167a826b50 @robrighter committed May 9, 2010
View
BIN .DS_Store
Binary file not shown.
View
2 dynamic/css/site.sass
@@ -357,7 +357,7 @@ em
color: #000
// font-size: 12px
-.user img
+.user img.avatar
float: left
width: 50px
height: 50px
View
6 dynamic/index.haml
@@ -85,10 +85,12 @@
#userlist
%div{:class=>'user template'}
- %img{:src=>'http://a1.twimg.com/profile_images/79569518/eagle_bigger.jpg'}
+ %img{:class=>'avatar',:src=>'http://a1.twimg.com/profile_images/79569518/eagle_bigger.jpg'}
%div{:class=>'name'}
- %a{:href=>'#'}= 'montytwitter'
+ %a{:href=>'#',:class=>'friendagonlink'}= 'montytwitter'
%span{:class=>'notify'}
+ %a{:href=>'#',:class=>'twitterlink'}
+ %img{:src=>'/images/opentwitter.png'}
%div{:class=>'following'}
%span= 'following: '
%span{:class=>'count'}= '245'
View
2 prod-buildout/css/site.css
@@ -376,7 +376,7 @@ em {
font-weight: bold;
color: #000; }
-.user img {
+.user img.avatar {
float: left;
width: 50px;
height: 50px;
View
BIN prod-buildout/images/opentwitter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 prod-buildout/index.html
@@ -120,10 +120,13 @@
</div>
<div id='userlist'>
<div class='user template'>
- <img src='http://a1.twimg.com/profile_images/79569518/eagle_bigger.jpg' />
+ <img class='avatar' src='http://a1.twimg.com/profile_images/79569518/eagle_bigger.jpg' />
<div class='name'>
- <a href='#'>montytwitter</a>
+ <a class='friendagonlink' href='#'>montytwitter</a>
<span class='notify'></span>
+ <a class='twitterlink' href='#'>
+ <img src='/images/opentwitter.png' />
+ </a>
</div>
<div class='following'>
<span>following:</span>
View
7 prod-buildout/js/site.js
@@ -12,9 +12,10 @@ var marked = new function(){
var insertUser = function (user){
var template = $('.template').clone();
- template.find('.name a').html(user.screen_name + '<span><strong>' + user.location + '</strong><br/>' + user.description + '</span>');
- template.find('.name a').attr('href' ,'http://friendagon.com/'+user.screen_name + '/');
- template.find('img').attr('src' ,user.profile_image_url);
+ template.find('.name a.friendagonlink').html(user.screen_name + '<span><strong>' + user.location + '</strong><br/>' + user.description + '</span>');
+ template.find('.name .friendagonlink').attr('href' ,'http://friendagon.com/'+user.screen_name + '/');
+ template.find('.name .twitterlink').attr('href' ,'http://twitter.com/'+user.screen_name + '/');
+ template.find('img.avatar').attr('src' ,user.profile_image_url);
template.find('.following .count').html(user.friends_count);
template.find('.followers .count').html(user.followers_count);
template.find('.minus').attr('onClick','unfollow("'+ user.screen_name +'",function() {notifyUnfollowed("'+user.screen_name+'");});');
View
BIN static/images/opentwitter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
7 static/js/site.js
@@ -12,9 +12,10 @@ var marked = new function(){
var insertUser = function (user){
var template = $('.template').clone();
- template.find('.name a').html(user.screen_name + '<span><strong>' + user.location + '</strong><br/>' + user.description + '</span>');
- template.find('.name a').attr('href' ,'http://friendagon.com/'+user.screen_name + '/');
- template.find('img').attr('src' ,user.profile_image_url);
+ template.find('.name a.friendagonlink').html(user.screen_name + '<span><strong>' + user.location + '</strong><br/>' + user.description + '</span>');
+ template.find('.name .friendagonlink').attr('href' ,'http://friendagon.com/'+user.screen_name + '/');
+ template.find('.name .twitterlink').attr('href' ,'http://twitter.com/'+user.screen_name + '/');
+ template.find('img.avatar').attr('src' ,user.profile_image_url);
template.find('.following .count').html(user.friends_count);
template.find('.followers .count').html(user.followers_count);
template.find('.minus').attr('onClick','unfollow("'+ user.screen_name +'",function() {notifyUnfollowed("'+user.screen_name+'");});');

0 comments on commit 1c5de1e

Please sign in to comment.