display original author if post is a reshare

This commit is contained in:
danielgrippi 2012-02-21 11:00:59 -08:00
parent 3db133a3a7
commit ebcde41e69
4 changed files with 11 additions and 32 deletions

View file

@ -5,27 +5,4 @@
- content_for :page_title do
= post_page_title @post
/- content_for :head do
/ = javascript_include_tag 'vendor/bootstrap/bootstrap-transition', 'vendor/bootstrap/bootstrap-modal'
#container
-# #comment.modal.fade
-# .modal-header
-# %h3
-# Responses
-# .modal-body
-# - @post.comments.each do |c|
-# .media
-# .img
-# = person_image_link c.author
-# .bd
-# %strong= person_link(c.author)
-# %br
-# = c.text
-# .modal-footer
-# = form_tag comments_path, :remote => true do
-# = text_area_tag :text, '', :class => 'span6'
-# = hidden_field_tag :post_id, @post.id
-# = submit_tag 'submit', :onclick => "$('#comment').modal('hide'); $('#text').text('')"

View file

@ -34,14 +34,6 @@ app.pages.PostViewer = app.views.Base.extend({
this.bindNavHooks();
},
bindQuickCommenting : function() {
/* focus modal */
// doc.keypress(function(){
// $('#text').focus();
// $('#comment').modal();
// });
},
bindNavHooks : function() {
/* navagation hooks */
var nextPostLocation = this.model.get("next_post");

View file

@ -9,6 +9,15 @@
{{author.name}}
</a>
{{#if root}}
<i class="icon-retweet"></i>
{{#with root}}
<a href="/people/{{author.guid}}" class="author-name">
{{author.name}}
</a>
{{/with}}
{{/if}}
<div class="post-time">
<i class="icon-time"></i>
<time datetime="{{created_at}}" />

View file

@ -285,7 +285,8 @@ $light-grey: #999;
@include border-radius();
}
.post-time {
.post-time,
.icon-retweet {
color: #000;
@include opacity(0.5);
}