mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-12 16:07:59 +00:00
move sent indicator to time stamp
This commit is contained in:
parent
af81a3d82e
commit
7d156063ee
@ -219,7 +219,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<a class="post-info-time"></a>
|
||||
<a class="post-info-time"><span class="post-info-sent"></span> <span></span></a>
|
||||
</div>
|
||||
<p class="post-text"></p>
|
||||
<div class="post-context" style="display: none;"></div>
|
||||
@ -263,8 +263,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<span class="post-info-sent"></span>
|
||||
<a class="post-info-time"></a>
|
||||
<a class="post-info-time"><span></span></a>
|
||||
</div>
|
||||
<p class="post-text"></p>
|
||||
</div>
|
||||
@ -352,7 +351,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag">@</span>
|
||||
<a href="#" class="post-info-time" title="">10min</a>
|
||||
<a href="#" class="post-info-time" title=""><span></span></a>
|
||||
</div>
|
||||
<!-- o texto do post (restrição de caracteres?) -->
|
||||
<p class="post-text"></p>
|
||||
@ -367,7 +366,7 @@
|
||||
<!-- cada li é uma mensagem -->
|
||||
<li id="dm-chat-template" class="module post message">
|
||||
<div class="post-photo"><img src="img/grayed_avatar_placeholder_24.png" alt="user-photo"/></div>
|
||||
<a href="#" class="post-info-time" title="08/10/13 às 18:00">10min</a>
|
||||
<a href="#" class="post-info-time" title="08/10/13 às 18:00"><span class="post-info-sent"></span> <span></span></a>
|
||||
<p class="post-text"></p>
|
||||
</li>
|
||||
|
||||
|
10
home.html
10
home.html
@ -310,8 +310,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<span class="post-info-sent"></span>
|
||||
<a class="post-info-time"></a>
|
||||
<a class="post-info-time"><span class="post-info-sent"></span> <span></span></a>
|
||||
</div>
|
||||
<p class="post-text"></p>
|
||||
<div class="post-context" style="display: none;"></div>
|
||||
@ -355,7 +354,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<a class="post-info-time"></a>
|
||||
<a class="post-info-time"><span></span></a>
|
||||
</div>
|
||||
<p class="post-text"></p>
|
||||
</div>
|
||||
@ -444,7 +443,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag">@</span>
|
||||
<a href="#" class="post-info-time" title="">10min</a>
|
||||
<a href="#" class="post-info-time" title=""><span></span></a>
|
||||
</div>
|
||||
<!-- o texto do post (restrição de caracteres?) -->
|
||||
<p class="post-text"></p>
|
||||
@ -459,8 +458,7 @@
|
||||
<!-- cada li é uma mensagem -->
|
||||
<li id="dm-chat-template" class="module post message">
|
||||
<div class="post-photo"><img src="img/grayed_avatar_placeholder_24.png" alt="user-photo"/></div>
|
||||
<span class="post-info-sent"></span>
|
||||
<a href="#" class="post-info-time" title="08/10/13 às 18:00">10min</a>
|
||||
<a href="#" class="post-info-time" title="08/10/13 às 18:00"><span class="post-info-sent"></span> <span></span></a>
|
||||
<p class="post-text"></p>
|
||||
</li>
|
||||
|
||||
|
@ -44,7 +44,11 @@ function postToElem(post, kind, promoted) {
|
||||
//elem.find('.post-info-tag').text("@" + username); // FIXME
|
||||
getAvatar(username, elem.find('.avatar'));
|
||||
|
||||
elem.find('.post-info-time').text(timeGmtToText(time)).attr('title', timeSincePost(time));
|
||||
elem.find('.post-info-time')
|
||||
.attr('title', timeSincePost(time))
|
||||
.find('span:last')
|
||||
.text(timeGmtToText(time))
|
||||
;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -253,7 +257,11 @@ function dmDataToSnippetItem(dmData, remoteUser) {
|
||||
else
|
||||
getFullname( remoteUser, dmItem.find("a.post-info-name") );
|
||||
dmItem.find(".post-text").html(htmlFormatMsg(dmData.text).html);
|
||||
dmItem.find(".post-info-time").text(timeGmtToText(dmData.time)).attr("title",timeSincePost(dmData.time));
|
||||
dmItem.find('.post-info-time')
|
||||
.attr('title', timeSincePost(dmData.time))
|
||||
.find('span:last')
|
||||
.text(timeGmtToText(dmData.time))
|
||||
;
|
||||
|
||||
return dmItem;
|
||||
}
|
||||
@ -268,7 +276,11 @@ function dmDataToConversationItem(dmData, localUser, remoteUser) {
|
||||
dmItem.removeAttr('id');
|
||||
dmItem.addClass(classDm);
|
||||
getAvatar(from, dmItem.find(".post-photo").find("img") );
|
||||
dmItem.find(".post-info-time").text(timeGmtToText(dmData.time)).attr("title",timeSincePost(dmData.time));
|
||||
dmItem.find('.post-info-time')
|
||||
.attr('title', timeSincePost(dmData.time))
|
||||
.find('span:last')
|
||||
.text(timeGmtToText(dmData.time))
|
||||
;
|
||||
setPostInfoSent(from,dmData.k,dmItem.find('.post-info-sent'));
|
||||
dmItem.find('.post-text').html(htmlFormatMsg(dmData.text).html);
|
||||
|
||||
|
11
tmobile.html
11
tmobile.html
@ -744,7 +744,7 @@
|
||||
<h4 class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal status_reply"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<span style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"></span>
|
||||
<a style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"><span class="post-info-sent"></span> <span></span></a>
|
||||
</h4>
|
||||
<p class="post-text no-ellipsis"></p>
|
||||
<div class="post-context" style="display: none;"></div>
|
||||
@ -763,7 +763,7 @@
|
||||
<h4 class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<span style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"></span>
|
||||
<a style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"><span class="post-info-sent"></span> <span></span></a>
|
||||
</h4>
|
||||
<p class="post-text no-ellipsis"></p>
|
||||
<div class="post-context" style="display: none;"></div>
|
||||
@ -796,8 +796,7 @@
|
||||
<div class="post-info">
|
||||
<a href="#" class="post-info-name open-profile-modal"></a>
|
||||
<span class="post-info-tag"></span>
|
||||
<span class="post-info-sent"></span>
|
||||
<a class="post-info-time"></a>
|
||||
<a class="post-info-time"><span></span></a>
|
||||
</div>
|
||||
<p class="post-text"></p>
|
||||
</div>
|
||||
@ -828,7 +827,7 @@
|
||||
<h4 class="post-info">
|
||||
<span class="post-info-name open-profile-modal"></span>
|
||||
<span class="post-info-tag">@</span>
|
||||
<span style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"></span>
|
||||
<a style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"><span></span></a>
|
||||
</h4>
|
||||
<!-- o texto do post (restrição de caracteres?) -->
|
||||
<p class="post-text"></p>
|
||||
@ -839,7 +838,7 @@
|
||||
<li id="dm-chat-template" class="module post message">
|
||||
<h4 class="post-photo">
|
||||
<img class="avatar" src="img/grayed_avatar_placeholder_24.png" alt="user-photo"/>
|
||||
<span style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"></span>
|
||||
<a style='font-weight:lighter;font-size:12px;' class="post-info-time ui-li-aside"><span class="post-info-sent"></span> <span></span></a>
|
||||
</h4>
|
||||
<p class="post-text no-ellipsis"></p>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user