mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
Merge pull request #320 from erqan/blaster
add time of RT to post's 'twisted again by @' line...
This commit is contained in:
commit
f5937880d1
@ -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;
|
||||||
|
@ -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) -->
|
||||||
|
@ -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) -->
|
||||||
|
@ -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…
Reference in New Issue
Block a user