diff --git a/css/style.css b/css/style.css
index db36ed2..b1c131c 100644
--- a/css/style.css
+++ b/css/style.css
@@ -891,19 +891,19 @@ textarea.splited-post {
}
.followers,
-.last-activity
-{
+.latest-activity {
font-size: 12px;
color: rgba( 0, 0, 0, .6 );
margin-left: 58px;
}
+
.followed-by,
-.user-status-time
-{
+.latest-activity .time {
color: #e34f42;
font-size: 13px;
cursor: pointer;
}
+
.twister-user-name,
.twister-by-user-name
{
@@ -2389,12 +2389,13 @@ ol.toptrends-list {
right: 32px;
}
-.following-own-modal .following-list .last-activity {
+.following-own-modal .following-list .latest-activity {
position: absolute;
top: 110px;
right: 32px;
margin: 0;
}
+
/*************************************
*********** AUTOCOMPLETING ***********
**************************************/
diff --git a/home.html b/home.html
index c971185..bdbfd1b 100644
--- a/home.html
+++ b/home.html
@@ -302,9 +302,9 @@
×
-
+
Last activity
-
+
@@ -780,11 +780,9 @@
-
-
- Last activity
-
-
+
+ Last activity
+
diff --git a/js/interface_common.js b/js/interface_common.js
index 9c68d88..90460ab 100644
--- a/js/interface_common.js
+++ b/js/interface_common.js
@@ -711,7 +711,7 @@ function addPeerToFollowingList(list, peerAlias) {
.on('mouseup', {route: $.MAL.mentionsUrl(peerAlias)}, routeOnClick);
getAvatar(peerAlias, item.find('.mini-profile-photo'));
getFullname(peerAlias, item.find('.mini-profile-name'));
- getStatusTime(peerAlias, item.find('.user-status-time'));
+ getStatusTime(peerAlias, item.find('.latest-activity .time'));
if (peerAlias === defaultScreenName)
item.find('.following-config').hide();
@@ -752,7 +752,7 @@ function fillWhoToFollowModal(list, hlist, start) {
getFullname(utf, item.find('.twister-user-full'));
getBioToElem(utf, item.find('.bio'));
getFullname(followingUsers[i], item.find('.followed-by').text(followingUsers[i]));
- getStatusTime(utf,item.find('.user-status-time'));
+ getStatusTime(utf, item.find('.latest-activity .time'));
item.find('.twister-user-remove').remove();
@@ -2623,7 +2623,8 @@ function initInterfaceCommon() {
displayQueryPending($('.hashtag-modal .postboard-posts'));
});
- $('.user-status-time').on('mouseup', {feeder: '.user-status-time'}, handleClickOpenConversation);
+ getElem('.latest-activity', true).on('mouseup',
+ {feeder: '.latest-activity'}, handleClickOpenConversation);
replaceDashboards();
$(window).resize(replaceDashboards);
diff --git a/js/twister_following.js b/js/twister_following.js
index 1d96934..c736b05 100644
--- a/js/twister_following.js
+++ b/js/twister_following.js
@@ -515,7 +515,7 @@ function processWhoToFollowSuggestion(suggestion, followedBy) {
getAvatar(suggestion, item.find('.twister-user-photo'));
getFullname(followedBy, item.find('.followed-by').text(followedBy));
- getStatusTime(suggestion,item.find('.user-status-time'));
+ getStatusTime(suggestion, item.find('.latest-activity .time'));
item.find('.twister-user-remove').on('click', function() {
item.remove();
diff --git a/js/twister_io.js b/js/twister_io.js
index 0a98dc3..c9d1ab1 100644
--- a/js/twister_io.js
+++ b/js/twister_io.js
@@ -524,19 +524,16 @@ function getPostsCount(peerAlias, elem) {
function getStatusTime(peerAlias, elem) {
dhtget(peerAlias, 'status', 's',
- function(req, v) {
- var time = 0;
- var k = -1;
- if (v && v.userpost) {
- time = v.userpost.time;
- k = v.userpost.k;
- }
- elem.text(timeGmtToText(time));
- elem.attr('data-time', time);
- if (k > -1) {
- elem.attr('data-screen-name', peerAlias);
- elem.attr('data-id', k);
- }
+ function (req, ret) {
+ if (!ret || !ret.userpost)
+ return;
+
+ req.elem.text(timeGmtToText(ret.userpost.time))
+ .closest('.latest-activity')
+ .attr('data-screen-name', req.peerAlias)
+ .attr('data-id', ret.userpost.k)
+ .attr('data-time', ret.userpost.time)
+ ;
}, {peerAlias: peerAlias, elem: elem}
);
}