diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index a81f7f525..ad90ddc2e 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -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('')" diff --git a/public/javascripts/app/pages/post-viewer.js b/public/javascripts/app/pages/post-viewer.js index 128eb99b9..740dbbf4e 100644 --- a/public/javascripts/app/pages/post-viewer.js +++ b/public/javascripts/app/pages/post-viewer.js @@ -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"); diff --git a/public/javascripts/app/templates/post-viewer/author.handlebars b/public/javascripts/app/templates/post-viewer/author.handlebars index 904f4d0c6..813d582d2 100644 --- a/public/javascripts/app/templates/post-viewer/author.handlebars +++ b/public/javascripts/app/templates/post-viewer/author.handlebars @@ -9,6 +9,15 @@ {{author.name}} + {{#if root}} + + {{#with root}} + + {{author.name}} + + {{/with}} + {{/if}} +