aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
committerfriendica <info@friendica.com>2012-07-23 04:11:59 -0700
commit3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1 (patch)
tree890749f2ac3bca28745ff93089c4c9e68e49ae63 /view
parent33ea8737b71466be84dfaaa0fa16cd2850805158 (diff)
downloadvolse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.gz
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.tar.bz2
volse-hubzilla-3decf67e6d6aa0ae077aa48bcdd37afc05a36dd1.zip
realtime updates of "6 minutes ago" with fallback to iso8601 timestamps (available on tooltip)
Diffstat (limited to 'view')
-rw-r--r--view/head.tpl20
-rw-r--r--view/search_item.tpl3
-rw-r--r--view/wall_item.tpl2
-rw-r--r--view/wallwall_item.tpl2
4 files changed, 24 insertions, 3 deletions
diff --git a/view/head.tpl b/view/head.tpl
index 78e2a2abc..fbe2ded83 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -26,6 +26,7 @@
<script type="text/javascript" src="$baseurl/js/jquery.textinputs.js" ></script>
<script type="text/javascript" src="$baseurl/js/fk.autocomplete.js" ></script>
<script type="text/javascript" src="$baseurl/library/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
+<script type="text/javascript" src="$baseurl/library/jquery.timeago.js"></script>
<script type="text/javascript" src="$baseurl/library/tiptip/jquery.tipTip.minified.js"></script>
<script type="text/javascript" src="$baseurl/library/jgrowl/jquery.jgrowl_minimized.js"></script>
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
@@ -104,6 +105,25 @@
}
}
+ // jquery.timeago localisations
+
+ var t01 = $t01 ;
+ var t02 = $t02 ;
+ var t03 = "$t03" ;
+ var t04 = "$t04" ;
+ var t05 = "$t05" ;
+ var t06 = "$t06" ;
+ var t07 = "$t07" ;
+ var t08 = "$t08" ;
+ var t09 = "$t09" ;
+ var t10 = "$t10" ;
+ var t11 = "$t11" ;
+ var t12 = "$t12" ;
+ var t13 = "$t13" ;
+ var t14 = "$t14" ;
+ var t15 = "$t15" ;
+ var t16 = "$t16" ;
+ var t17 = $t17 ;
</script>
diff --git a/view/search_item.tpl b/view/search_item.tpl
index 8089d306e..e13c1e5a7 100644
--- a/view/search_item.tpl
+++ b/view/search_item.tpl
@@ -23,7 +23,8 @@
</div>
<div class="wall-item-author">
<a href="$item.profile_url" target="redir" title="$item.linktitle" class="wall-item-name-link"><span class="wall-item-name$item.sparkle" id="wall-item-name-$item.id" >$item.name</span></a>
- <div class="wall-item-ago" id="wall-item-ago-$item.id">$item.ago</div>
+
+ <div id="wall-item-ago-$item.id" class="wall-item-ago"><abbr class="wall-item-ago-time" title="$item.localtime">$item.ago</abbr>{{ if $item.app }}<span class="item.app">$item.str_app</span>{{ endif }}</div>
</div>
<div class="wall-item-content" id="wall-item-content-$item.id" >
diff --git a/view/wall_item.tpl b/view/wall_item.tpl
index 60dde7600..2510a8c0d 100644
--- a/view/wall_item.tpl
+++ b/view/wall_item.tpl
@@ -24,7 +24,7 @@
</div>
<div class="wall-item-author">
<a href="$item.profile_url" target="redir" title="$item.linktitle" class="wall-item-name-link"><span class="wall-item-name$item.sparkle" id="wall-item-name-$item.id" >$item.name</span></a>
- <div class="wall-item-ago" id="wall-item-ago-$item.id">$item.ago</div>
+ <div id="wall-item-ago-$item.id" class="wall-item-ago"><abbr class="wall-item-ago-time" title="$item.localtime">$item.ago</abbr>{{ if $item.app }}<span class="item.app">$item.str_app</span>{{ endif }}</div>
</div>
<div class="wall-item-content" id="wall-item-content-$item.id" >
diff --git a/view/wallwall_item.tpl b/view/wallwall_item.tpl
index b7cca3fab..478df8e88 100644
--- a/view/wallwall_item.tpl
+++ b/view/wallwall_item.tpl
@@ -29,7 +29,7 @@
</div>
<div class="wall-item-author">
<a href="$item.profile_url" target="redir" title="$item.linktitle" class="wall-item-name-link"><span class="wall-item-name$item.sparkle" id="wall-item-name-$item.id" >$item.name</span></a> $item.to <a href="$item.owner_url" target="redir" title="$item.olinktitle" class="wall-item-name-link"><span class="wall-item-name$item.osparkle" id="wall-item-ownername-$item.id">$item.owner_name</span></a> $item.vwall<br />
- <div class="wall-item-ago" id="wall-item-ago-$item.id">$item.ago</div>
+ <div id="wall-item-ago-$item.id" class="wall-item-ago"><abbr class="wall-item-ago-time" title="$item.localtime">$item.ago</abbr>{{ if $item.app }}<span class="item.app">$item.str_app</span>{{ endif }}</div>
</div>
<div class="wall-item-content" id="wall-item-content-$item.id" >
<div class="wall-item-title" id="wall-item-title-$item.id">$item.title</div>