Sha256: a968dc11536fa3275155a2307605fadb75db16e66a2e858fe2f2e0cae958bdc8
Contents?: true
Size: 384 Bytes
Versions: 17
Compression:
Stored size: 384 Bytes
Contents
require 'murlsh' module Murlsh # Show the time the url was posted. class UrlDisplayAdd65Time < Plugin @hook = 'url_display_add' # Show the time the url was posted. def self.run(markup, url, config) if url.time display_time = url.time.extend(Murlsh::TimeAgo).ago markup.span ", #{display_time}", :class => 'date' end end end end
Version data entries
17 entries across 17 versions & 1 rubygems