= render @post

.post-info
  - if @post.successor.present?
    p.light
      ' succeeded by:
      = link_to "#{@post.successor.sha}", @post.successor

  - if @post.predecessor.present?
    p.light
      ' preceeded by:
      = link_to "#{@post.predecessor.sha}", @post.predecessor

  - if can?(:edit, @post)
    p.light
      = link_to 'edit this post', [:edit, @post]

= render @post

.post-info
  - if @post.successor.present?
    p.light
      ' succeeded by:
      = link_to @post.successor.short_sha, @post.successor

  - if @post.predecessor.present?
    p.light
      ' preceeded by:
      = link_to @post.predecessor.short_sha, @post.predecessor

  - if can?(:edit, @post)
    p.light
      = link_to 'edit this post', [:edit, @post]

Use short SHAs for predecessors/successors
Use short SHAs for predecessors/successors
hmans/pants,hmans/pants,halfbyte/pants,spacetraveler/pants,halfbyte/pants,KlausTrainer/pants,spacetraveler/pants,spacetraveler/pants,hmans/pants,KlausTrainer/pants,KlausTrainer/pants