- # TODO consolidate this view code with replies#_single and message#_message
.post-container.news-container{class: cycle('even', 'odd')}
  .padding-10
    .post-edit-box
      - if news.editable_by?(current_user)
        = link_to edit_news_path(news) do
          = image_tag "icons/pencil.png".freeze, title: 'Edit'.freeze, alt: 'Edit'.freeze
      - if news.deletable_by?(current_user)
        = link_to news_path(news), method: :delete, data: { confirm: "Are you sure you wish to delete this news post?" } do
          = image_tag "icons/cross.png".freeze, title: 'Delete'.freeze, alt: 'Delete'.freeze
      = link_to news_path(news), title: 'Pemalink'.freeze, alt: 'Permalink'.freeze do
        = image_tag "icons/link.png".freeze, title: 'Delete'.freeze, alt: 'Delete'.freeze
    .message-content= sanitize_written_content(news.content)
  .subber
    Posted on
    = pretty_time(news.created_at)
    by
    = user_link(news.user)

- # TODO consolidate this view code with replies#_single and message#_message
.post-container.news-container{class: cycle('even', 'odd')}
  .padding-10
    .post-edit-box
      = link_to news_path(news), rel: 'alternate'.freeze do
        = image_tag "icons/link.png".freeze, title: 'Permalink'.freeze, alt: 'Permalink'.freeze
      - if news.editable_by?(current_user)
        = link_to edit_news_path(news) do
          = image_tag "icons/pencil.png".freeze, title: 'Edit'.freeze, alt: 'Edit'.freeze
      - if news.deletable_by?(current_user)
        = link_to news_path(news), method: :delete, data: { confirm: "Are you sure you wish to delete this news post?" } do
          = image_tag "icons/cross.png".freeze, title: 'Delete'.freeze, alt: 'Delete'.freeze
    .message-content= sanitize_written_content(news.content)
  .subber
    Posted on
    = pretty_time(news.created_at)
    by
    = user_link(news.user)

Reorder news links so they display in the same link-edit-delete order as replies; also update the copy/pasted titles from Delete to the more accurate Permalink
Reorder news links so they display in the same link-edit-delete order as replies; also update the copy/pasted titles from Delete to the more accurate Permalink
