From 9adf7c49753aecf4575e0de9c2a9bcc136bc9f5c Mon Sep 17 00:00:00 2001 From: noformnocontent Date: Tue, 29 Jan 2013 02:21:41 +0100 Subject: [PATCH] =?UTF-8?q?added=20=E2=80=9Cfollows=20since=20?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebKit/scripts/controller/Profile.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 341009f..33fc2ef 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -329,6 +329,7 @@ function(HostApp, Core, Paths, URI) { }, null, false); } + Profile.prototype.newStatus = function(statuses) { if(statuses != null && statuses.length > 0) { for(var i = statuses.length-1, c=0; i>=c; --i) { @@ -501,7 +502,18 @@ function(HostApp, Core, Paths, URI) { entity_tag.href = profile.entity; entity_tag.title = profile.entity; + var follows_since = document.createElement("p"); + follows_since.innerText = "follows since "; + + var follows_since_time = document.createElement("span"); + follows_since_time.innerText = this.ISODateString(new Date(profile.created_at * 1000)); + follows_since_time.title = follows_since_time.innerText; + follows_since_time.className = "timeago"; + jQuery(follows_since_time).timeago(); + p.appendChild(entity_tag); + follows_since.appendChild(follows_since_time); + p.appendChild(follows_since); div.appendChild(p); var profile_callback = function(p) {