From 6933eeb67574d508e49e0ac6c79d22961f4a209f Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Wed, 25 Apr 2012 17:22:59 -0700 Subject: [PATCH] show reshared people on hover [ci skip] --- app/assets/javascripts/app/views/small_frame.js | 3 +++ app/assets/stylesheets/new_styles/_canvas.scss | 9 +++++++++ app/assets/templates/small-frame.jst.hbs | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/app/assets/javascripts/app/views/small_frame.js b/app/assets/javascripts/app/views/small_frame.js index a826527e8..c04eec24b 100644 --- a/app/assets/javascripts/app/views/small_frame.js +++ b/app/assets/javascripts/app/views/small_frame.js @@ -32,6 +32,9 @@ app.views.SmallFrame = app.views.Post.extend({ initialize : function() { this.$el.addClass([this.dimensionsClass(), this.colorClass(), this.frameClass()].join(' ')) + + console.log(this.model) + return this; }, postRenderTemplate : function() { diff --git a/app/assets/stylesheets/new_styles/_canvas.scss b/app/assets/stylesheets/new_styles/_canvas.scss index 408bb6c57..00242ce6b 100644 --- a/app/assets/stylesheets/new_styles/_canvas.scss +++ b/app/assets/stylesheets/new_styles/_canvas.scss @@ -159,6 +159,15 @@ body { i { margin-left: 3px; } + + .avatar { + position : absolute; + top : 0; + left : 0; + + height : 29px; + width : 29px; + } } .background-color { diff --git a/app/assets/templates/small-frame.jst.hbs b/app/assets/templates/small-frame.jst.hbs index 4975f7029..ae5159d8e 100644 --- a/app/assets/templates/small-frame.jst.hbs +++ b/app/assets/templates/small-frame.jst.hbs @@ -30,6 +30,12 @@ {{/if}}
+ {{#if root}} + {{#linkToPerson root.author}} + {{{personImage this}} + {{/linkToPerson}} + {{/if}} + {{likes_count}} {{reshares_count}} {{comments_count}}