- reply ||= false
#messages
  %ul.single
    %li.message
      .update
        .byline
          = AuthorDecorator.decorate(update.author).avatar
          %a{:href => "/users/#{update.author.username}"}
            = update.author.username
        .update-text
          .content
            != update.to_html
          .update-date
            - if reply
              %a.timeago{:href => "/updates/#{update.id}", :title => update.created_at.getutc.iso8601}
            - else
              %abbr.timeago{:title => update.created_at.getutc.iso8601}

          .actions
            -unless current_user.nil? or (current_user.author.id == update.author.id)
              %a.share{:href => "/?share=#{update.id}"} share
              |
              %a.reply{:href => "/?reply=#{update.id}"} reply

            - if current_user and update.author.id == current_user.author.id
              = form_tag "/updates/#{update.id}" do
                %input{:type => "hidden", :name => "_method", :value => "delete"}
                = submit_tag "I Regret This", :class => "remove-update", :confirm => t(:remove_update, :scope => :confirms)

- reply ||= false
#messages
  %ul.single
    %li.message
      .update
        .byline
          = AuthorDecorator.decorate(update.author).avatar
          %a{:href => "/users/#{update.author.username}"}
            = update.author.username
        .update-text
          .content
            != update.to_html
          .update-date
            - if reply
              %a.timeago{:href => "/updates/#{update.id}", :title => update.created_at.getutc.iso8601}
                %span.date-time
                  = update.created_at.getutc.strftime("%FT%T")
            - else
              %abbr.timeago{:title => update.created_at.getutc.iso8601}
                %span.date-time
                  = update.created_at.getutc.strftime("%FT%T")

          .actions
            -unless current_user.nil? or (current_user.author.id == update.author.id)
              %a.share{:href => "/?share=#{update.id}"} share
              |
              %a.reply{:href => "/?reply=#{update.id}"} reply

            - if current_user and update.author.id == current_user.author.id
              = form_tag "/updates/#{update.id}" do
                %input{:type => "hidden", :name => "_method", :value => "delete"}
                = submit_tag "I Regret This", :class => "remove-update", :confirm => t(:remove_update, :scope => :confirms)

Add the ALPS spec date-time element to the single update page
Add the ALPS spec date-time element to the single update page
