moved time ago from tab to always visible, added conversation icon

This commit is contained in:
Jeena Paradies 2013-02-15 20:22:44 +01:00
parent 0bb13e6d33
commit b7b736d9d9
4 changed files with 35 additions and 19 deletions

View file

@ -26,6 +26,10 @@ function(jQuery, Paths, URI, HostApp, Cache) {
var aside = document.createElement("aside");
item.appendChild(aside);
var ago = a.cloneNode();
ago.className = "ago";
aside.appendChild(ago);
var reply_to = a.cloneNode();
reply_to.className = "reply_to"
reply_to.innerText = " ";
@ -111,19 +115,16 @@ function(jQuery, Paths, URI, HostApp, Cache) {
images.className = "images";
data.appendChild(images);
var date = message.cloneNode();
date.className = "date";
data.appendChild(date);
var from = message.cloneNode();
from.className = "from";
data.appendChild(from);
var ago = a.cloneNode();
date.appendChild(ago);
var from = document.createTextNode(" from ");
date.appendChild(from)
var from_text = document.createTextNode("from ");
from.appendChild(from_text)
var source = document.createElement("a");
source.className = "source";
date.appendChild(source)
from.appendChild(source)
this.template = {
item: item,

View file

@ -43,11 +43,11 @@ function($) {
prefixFromNow: null,
suffixAgo: null,
suffixFromNow: "from now",
seconds: "%d sec",
minute: "1 min",
minutes: "%d min",
hour: "1 h",
hours: "%d h",
seconds: "%ds",
minute: "1m",
minutes: "%dm",
hour: "1h",
hours: "%dh",
day: "1 day",
days: "%d day",
month: "1 month",