- content_for :title do
  = @glitterpost.title.titleize
#glitterposts
  .glitterpost
    .glitterpost-meta
      = avatar(User.find(@glitterpost.user_id).email)
      %p.author.padded
        Posted by #{User.find(@glitterpost.user_id).username} #{distance_of_time_in_words_to_now @glitterpost.created_at} ago
      %p.title.padded
        = @glitterpost.title
    .glitterpost-body
      = @glitterpost.content
    
#operations
  .operation
    = link_to 'Back', glitterposts_path
    - if logged_in? && (@glitterpost.user_id == current_user.id)
      .operation
        = link_to 'Edit', edit_glitterpost_path
      .operation
        = link_to 'Destroy', glitterpost_path, method: :delete, data: { confirm: 'Are you sure?' }

#comments
  - @glitterpost.comments.each do |c|
    = render 'comments/comment', :comment => c

#comments
  - if logged_in?
    = render 'comments/new', :comment => @comment




- content_for :title do
  = @glitterpost.title.titleize
#glitterposts
  .glitterpost
    .glitterpost-meta
      = avatar(User.find(@glitterpost.user_id).email)
      %p.author.padded
        Posted by #{User.find(@glitterpost.user_id).username} #{distance_of_time_in_words_to_now @glitterpost.created_at} ago
      %p.title.padded
        = @glitterpost.title
    .glitterpost-body
      = @glitterpost.content
    
#operations
  .operation
    = link_to 'Back', glitterposts_path
  - if logged_in? && (@glitterpost.user_id == current_user.id)
    .operation
      = link_to 'Edit', edit_glitterpost_path
    .operation
      = link_to 'Destroy', glitterpost_path, method: :delete, data: { confirm: 'Are you sure?' }

#comments
  - @glitterpost.comments.each do |c|
    = render 'comments/comment', :comment => c

#comments
  - if logged_in?
    = render 'comments/new', :comment => @comment




Fix indentation issue on glitterpost
Fix indentation issue on glitterpost
