blocks you tooltip
This commit is contained in:
parent
949162b258
commit
8abbdeb3c0
|
@ -773,9 +773,13 @@ class QvitterPlugin extends Plugin {
|
|||
$twitter_user['profile_background_color'] = Profile_prefs::getConfigData($profile, 'theme', 'backgroundcolor');
|
||||
$twitter_user['profile_banner_url'] = Profile_prefs::getConfigData($profile, 'qvitter', 'cover_photo');
|
||||
|
||||
// follows me?
|
||||
|
||||
if ($scoped) {
|
||||
// follows me?
|
||||
$twitter_user['follows_you'] = $profile->isSubscribed($scoped);
|
||||
|
||||
// blocks me?
|
||||
$twitter_user['blocks_you'] = $profile->hasBlocked($scoped);
|
||||
}
|
||||
|
||||
// local user?
|
||||
|
|
|
@ -4335,6 +4335,15 @@ button.shorten:not(.disabled):active {
|
|||
display:none;
|
||||
}
|
||||
|
||||
.user-actions .blocks-you::before {
|
||||
content:"\f05e";
|
||||
color: #aaa;
|
||||
cursor:default;
|
||||
font-family: FontAwesome;
|
||||
font-size: 20px;
|
||||
line-height: 32px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -311,6 +311,12 @@ function buildFollowBlockbutton(obj) {
|
|||
if(typeof window.loggedIn.screen_name != 'undefined' // if logged in
|
||||
&& window.loggedIn.id != obj.id) { // not if this is me
|
||||
if(!(obj.statusnet_profile_url.indexOf('/twitter.com/')>-1 && obj.following === false)) { // only unfollow twitter users
|
||||
if(obj.blocks_you) {
|
||||
var followButton = '<div class="user-actions">\
|
||||
<div class="blocks-you" data-tooltip="' + window.sL.tooltipBlocksYou.replace('{username}','@' + obj.screen_name) + '"></div>\
|
||||
</div>';
|
||||
}
|
||||
else {
|
||||
var followButton = '<div class="user-actions">\
|
||||
<button data-follow-user-id="' + obj.id + '" data-follow-user="' + obj.statusnet_profile_url + '" type="button" class="qvitter-follow-button' + followingClass + blockingClass + '">\
|
||||
<span class="button-text follow-text"><i class="follow"></i>' + window.sL.userFollow + '</span>\
|
||||
|
@ -322,6 +328,7 @@ function buildFollowBlockbutton(obj) {
|
|||
</div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return followButton;
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -167,5 +167,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
"buttonUnblock":"Avblockera",
|
||||
"failedBlockingUser":"Misslyckades med att blockera användaren.",
|
||||
"failedUnblockingUser":"Misslyckades med att avblockera användaren.",
|
||||
"unblockUser": "Avblockera {username}"
|
||||
"unblockUser": "Avblockera {username}",
|
||||
"tooltipBlocksYou":"Du är blockerad från att följa {username}."
|
||||
}
|
||||
|
|
|
@ -168,5 +168,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
|
@ -168,5 +168,6 @@
|
|||
"buttonUnblock":"Unblock",
|
||||
"failedBlockingUser":"Failed to block the user.",
|
||||
"failedUnblockingUser":"Failed to unblock the user.",
|
||||
"unblockUser": "Unblock {username}"
|
||||
"unblockUser": "Unblock {username}",
|
||||
"tooltipBlocksYou":"You are blocked from following {username}."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user