fixed #54
This commit is contained in:
parent
af1eb210b0
commit
fc0f14ec82
2 changed files with 24 additions and 0 deletions
|
@ -188,6 +188,15 @@ li:hover .name {
|
|||
background: #b8c1d0;
|
||||
}
|
||||
|
||||
.is_private {
|
||||
color: white;
|
||||
padding: 0 4px 0 2px;
|
||||
background: #09F;
|
||||
border-radius: 3px;
|
||||
font-style: italic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
li .date {
|
||||
position: absolute;
|
||||
|
|
|
@ -67,6 +67,17 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
var geo = document.createElement("a");
|
||||
geo.style.display = "none";
|
||||
head.appendChild(geo);
|
||||
|
||||
head.appendChild(space.cloneNode());
|
||||
|
||||
var is_private = document.createElement("span")
|
||||
is_private.className = "is_private";
|
||||
is_private.style.display = "none";
|
||||
is_private.innerHTML = "P";
|
||||
is_private.title = "Private";
|
||||
head.appendChild(is_private);
|
||||
|
||||
head.appendChild(space.cloneNode());
|
||||
|
||||
var pin = document.createElement("img");
|
||||
pin.src = "img/pin.png";
|
||||
|
@ -104,6 +115,7 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
this.template = {
|
||||
item: item,
|
||||
reply_to: reply_to,
|
||||
is_private: is_private,
|
||||
retweet: retweet,
|
||||
image: image,
|
||||
username: username,
|
||||
|
@ -175,6 +187,9 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
});
|
||||
}
|
||||
|
||||
if (status && status.permissions && !status.permissions.public) {
|
||||
template.is_private.style.display = '';
|
||||
}
|
||||
|
||||
template.in_reply.parentNode.className = "hidden";
|
||||
|
||||
|
|
Reference in a new issue