Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update markup template for single tweet

  • Loading branch information...
commit 7f4f05be2a377029b276368f9e38481088afa2e1 1 parent 762de07
@mislav authored
Showing with 15 additions and 9 deletions.
  1. +1 −1  endless_tweets/endless_tweets.js
  2. +14 −8 endless_tweets/tweet.haml
View
2  endless_tweets/endless_tweets.js
@@ -265,7 +265,7 @@ var buildUpdateFromJSON = (function() {
// remove excess elements
if (!data.user.protected) removeChild(find(update, '.status-body > img'))
if (!data.in_reply_to_status_id) removeChild(find(update, '.meta > a[last()]'))
- removeChild(find(update, '.actions a.' + (own ? 'reply' : 'del')))
+ removeChild(find(update, '.actions-hover' + (own ? ' .reply' : ' .del')))
return update
}
View
22 endless_tweets/tweet.haml
@@ -1,19 +1,25 @@
%li#status_ID.hentry.status.u-USERNAME
%span.thumb.vcard.author<
- %a.url{ :href => "/USERNAME" }
+ %a.tweet-url.profile-pic.url{ :href => "/USERNAME" }
%img.photo.fn{ :src => "AVATAR", :height => "48", :alt => "REAL_NAME", :width => "48" }
%span.status-body
%img.lock{ :title => "REAL_NAME’s updates are protected— please don’t share!", :src => "http://assets2.twitter.com/images/icon_lock.gif", :alt => "Icon_lock" }
%strong<
- %a.screen-name{ :href => "USERNAME", :title => "REAL_NAME" } USERNAME
+ %a.tweet-url.screen-name{ :href => "/USERNAME", :title => "REAL_NAME" } USERNAME
+ %span.actions
+ %div
+ %a.fav-action.FAV_CLASS#status_star_ID{ :title => "FAV_ACTION this tweet" } &nbsp;&nbsp;
%span.entry-content TEXT
%span.meta.entry-meta
%a.entry-date{ :href => "/USERNAME/status/ID", :rel => "bookmark" }
- %span.published{ :title => "CREATED_AT" } CREATED_AGO
+ %span.published.timestamp{ :title => "CREATED_AT" } CREATED_AGO
%span from SOURCE
%a{ :href => "/IN_REPLY_TO/status/IN_REPLY_TO_STATUS" } in reply to IN_REPLY_TO
- %span.actions<
- %div
- %a#status_star_ID.fav-action.FAV_CLASS{ :title => "FAV_ACTION this update" } &nbsp;&nbsp;
- %a.del{ :title => "delete this update" } &nbsp;&nbsp;
- %a.reply{ :href => "/home?status=@USERNAME%20&in_reply_to_status_id=ID&in_reply_to=USERNAME", :title => "reply to USERNAME" } &nbsp;&nbsp;
+ %ul.actions-hover<
+ %li
+ %span.del
+ %span.delete-icon.icon>
+ %a{ :href => '#', :title => "delete this tweet" }> Delete
+ %span.reply
+ %span.reply-icon.icon>
+ %a{ :href => "/home?status=@USERNAME%20&in_reply_to_status_id=ID&in_reply_to=USERNAME", :title => "reply to USERNAME" }> Reply
Please sign in to comment.
Something went wrong with that request. Please try again.