Sha256: 01e488c04b6734f8cfcbc226291b4ed10ba60b332417f496562e06a733e1d882

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

module Commontator
  module CommentsHelper
    def created_timestamp(comment)
      t 'commontator.comment.status.created_at',
      :created_at => l(comment.created_at, :format => :commontator)
    end

    def updated_timestamp(comment)
      editor = comment.editor
      return '' if editor.nil?

      t 'commontator.comment.status.updated_at',
        :editor_name => editor.commontator_config.user_name_proc.call(editor),
        :updated_at => l(comment.updated_at, :format => :commontator)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commontator-4.3.0 app/helpers/commontator/comments_helper.rb