Browse Source

move sent indicator to time stamp

master
Simon Grim 9 years ago
parent
commit
7d156063ee
  1. 9
      following.html
  2. 10
      home.html
  3. 18
      js/twister_formatpost.js
  4. 11
      tmobile.html

9
following.html

@ -219,7 +219,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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

@ -310,8 +310,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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>

18
js/twister_formatpost.js

@ -44,7 +44,11 @@ function postToElem(post, kind, promoted) { @@ -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) { @@ -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) { @@ -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

@ -744,7 +744,7 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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 @@ @@ -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…
Cancel
Save