Browse Source

rt time...

readme-update
erqan 9 years ago
parent
commit
45c6b969ed
  1. 3
      css/style.css
  2. 1
      following.html
  3. 1
      home.html
  4. 5
      js/twister_formatpost.js

3
css/style.css

@ -1106,6 +1106,9 @@ ol.toptrends-list {
margin: 2px; margin: 2px;
} }
.post-retransmited-time:before {
content: ' ';
}
.post-interactions .post-interactions
{ {
margin: 2px 10px 10px 60px; margin: 2px 10px 10px 60px;

1
following.html

@ -280,6 +280,7 @@
<i class="post-retransmited-icon"></i> <i class="post-retransmited-icon"></i>
<span>twisted again by</span><span> </span> <span>twisted again by</span><span> </span>
<a class="post-retransmited-by open-profile-modal" href=""></a> <a class="post-retransmited-by open-profile-modal" href=""></a>
<span class="post-retransmited-time"></span>
</div> </div>
<!-- template for user links in message (open profile modal) --> <!-- template for user links in message (open profile modal) -->

1
home.html

@ -371,6 +371,7 @@
<i class="post-retransmited-icon"></i> <i class="post-retransmited-icon"></i>
<span>twisted again by</span><span> </span> <span>twisted again by</span><span> </span>
<a class="post-retransmited-by open-profile-modal" href=""></a> <a class="post-retransmited-by open-profile-modal" href=""></a>
<span class="post-retransmited-time"></span>
</div> </div>
<!-- template for user links in message (open profile modal) --> <!-- template for user links in message (open profile modal) -->

5
js/twister_formatpost.js

@ -3,8 +3,8 @@
// //
// Format JSON posts and DMs to HTML. // Format JSON posts and DMs to HTML.
var _templatePostRtReference var _templatePostRtReference;
var _templatePostRtBy var _templatePostRtBy;
var _htmlFormatMsgLinkTemplateExternal; var _htmlFormatMsgLinkTemplateExternal;
var _htmlFormatMsgLinkTemplateUser; var _htmlFormatMsgLinkTemplateUser;
var _htmlFormatMsgLinkTemplateHashtag; var _htmlFormatMsgLinkTemplateHashtag;
@ -160,6 +160,7 @@ function postToElem(post, kind, promoted) {
.find('.post-retransmited-by') .find('.post-retransmited-by')
.attr('href', $.MAL.userUrl(retweeted_by)).text('@' + retweeted_by) .attr('href', $.MAL.userUrl(retweeted_by)).text('@' + retweeted_by)
; ;
postContext.find('.post-retransmited-time').text('on ' + timeGmtToText(post.userpost.time));
// let's check original post and grab some possible RT // let's check original post and grab some possible RT
dhtget(username, 'post' + k, 's', dhtget(username, 'post' + k, 's',
function(args, post) { function(args, post) {

Loading…
Cancel
Save