follows you badge in external profile card popups #178
This commit is contained in:
parent
d5a3c0f003
commit
e4f8d27937
|
@ -1048,6 +1048,12 @@ $('body').on('click','a', function(e) {
|
||||||
followingClass = 'following';
|
followingClass = 'following';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// follows me?
|
||||||
|
var follows_you = '';
|
||||||
|
if(data.local.follows_you === true && window.myUserID != data.local.id) {
|
||||||
|
var follows_you = '<span class="follows-you">' + window.sL.followsYou + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
// empty strings and zeros instead of null
|
// empty strings and zeros instead of null
|
||||||
data = cleanUpUserObject(data.external);
|
data = cleanUpUserObject(data.external);
|
||||||
|
@ -1070,7 +1076,7 @@ $('body').on('click','a', function(e) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var cover_photo = data.profile_image_url_original;
|
var cover_photo = data.profile_image_url_original;
|
||||||
}
|
}
|
||||||
|
|
||||||
// is webpage empty?
|
// is webpage empty?
|
||||||
var emptyWebpage = '';
|
var emptyWebpage = '';
|
||||||
|
@ -1090,7 +1096,7 @@ $('body').on('click','a', function(e) {
|
||||||
var noticeHtml = buildQueetHtml(data.status);
|
var noticeHtml = buildQueetHtml(data.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
var profileCard = '<div class="profile-card"><div class="profile-header-inner" style="background-image:url(\'' + cover_photo + '\')"><div class="profile-header-inner-overlay"></div><a class="profile-picture"><img src="' + data.profile_image_url_profile_size + '" /></a><div class="profile-card-inner"><h1 class="fullname">' + data.name + '<span></span></h1><h2 class="username"><span class="screen-name"><a target="_blank" href="' + data.statusnet_profile_url + '">' + screenNameWithServer + '</a></span><span class="follow-status"></span></h2><div class="bio-container"><p>' + data.description + '</p></div><p class="location-and-url"><span class="location">' + data.location + '</span><span class="url' + emptyWebpage + '"><span class="divider"> · </span><a target="_blank" href="' + data.url + '">' + data.url.replace('http://','').replace('https://','') + '</a></span></p></div></div><div class="profile-banner-footer"><ul class="stats"><li><a target="_blank" href="' + data.statusnet_profile_url + '">' + window.sL.notices + '<strong>' + data.statuses_count + '</strong></a></li><li><a target="_blank" href="' + data.statusnet_profile_url + '/subscriptions">' + window.sL.following + '<strong>' + data.friends_count + '</strong></a></li><li><a target="_blank" href="' + data.statusnet_profile_url + '/subscribers">' + window.sL.followers + '<strong>' + data.followers_count + '</strong></a></li></ul>' + followButton + '<div class="clearfix"></div></div></div><div class="clearfix"></div>';
|
var profileCard = '<div class="profile-card"><div class="profile-header-inner" style="background-image:url(\'' + cover_photo + '\')"><div class="profile-header-inner-overlay"></div><a class="profile-picture"><img src="' + data.profile_image_url_profile_size + '" /></a><div class="profile-card-inner"><h1 class="fullname">' + data.name + '<span></span></h1><h2 class="username"><span class="screen-name"><a target="_blank" href="' + data.statusnet_profile_url + '">' + screenNameWithServer + '</a>' + follows_you + '</span><span class="follow-status"></span></h2><div class="bio-container"><p>' + data.description + '</p></div><p class="location-and-url"><span class="location">' + data.location + '</span><span class="url' + emptyWebpage + '"><span class="divider"> · </span><a target="_blank" href="' + data.url + '">' + data.url.replace('http://','').replace('https://','') + '</a></span></p></div></div><div class="profile-banner-footer"><ul class="stats"><li><a target="_blank" href="' + data.statusnet_profile_url + '">' + window.sL.notices + '<strong>' + data.statuses_count + '</strong></a></li><li><a target="_blank" href="' + data.statusnet_profile_url + '/subscriptions">' + window.sL.following + '<strong>' + data.friends_count + '</strong></a></li><li><a target="_blank" href="' + data.statusnet_profile_url + '/subscribers">' + window.sL.followers + '<strong>' + data.followers_count + '</strong></a></li></ul>' + followButton + '<div class="clearfix"></div></div></div><div class="clearfix"></div>';
|
||||||
|
|
||||||
popUpAction('popup-external-profile', screenNameWithServer,profileCard + noticeHtml,'<a class="go-to-external-profile" href="' + data.statusnet_profile_url + '">' + window.sL.goToExternalProfile + '</a>');
|
popUpAction('popup-external-profile', screenNameWithServer,profileCard + noticeHtml,'<a class="go-to-external-profile" href="' + data.statusnet_profile_url + '">' + window.sL.goToExternalProfile + '</a>');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user