debian-mirror-gitlab/lib/gitlab/import_formatter.rb
2015-09-25 12:07:36 +05:30

15 lines
286 B
Ruby

module Gitlab
class ImportFormatter
def comment(author, date, body)
"\n\n*By #{author} on #{date}*\n\n#{body}"
end
def comments_header
"\n\n\n**Imported comments:**\n"
end
def author_line(author)
"*Created by: #{author}*\n\n"
end
end
end