display original author if post is a reshare
This commit is contained in:
parent
3db133a3a7
commit
ebcde41e69
4 changed files with 11 additions and 32 deletions
|
|
@ -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('')"
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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}}" />
|
||||
|
|
|
|||
|
|
@ -285,7 +285,8 @@ $light-grey: #999;
|
|||
@include border-radius();
|
||||
}
|
||||
|
||||
.post-time {
|
||||
.post-time,
|
||||
.icon-retweet {
|
||||
color: #000;
|
||||
@include opacity(0.5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue