Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 862 Bytes
%div{class: [message.type, "op-#{message.opcode || 'msg'}"].join(' '),
data: { timestamp: message.timestamp },
id: message.id}
- time = Time.at(message.timestamp).gmtime
- if mode == :topic
%a.timeref{href: channel_url(@channel, "#{time.to_date}##{message.id}")}
%time{timestamp: time.iso8601}><= time.strftime("%Y-%m-%d %H:%M")
- elsif mode == :search
%a.timeref{href: channel_url(@channel, "#{time.to_date}##{message.id}")}
%time{timestamp: time.iso8601}><= time.strftime("%H:%M")
- else
%a.timestamp{href: "##{message.id}"}
%time{timestamp: time.iso8601}><= time.strftime("%H:%M")
- if message.talk?
&lt;
%span{class: nick_class(message.nick)}>= message.nick
&gt;
- elsif message.me_tell?
= message.nick
= format_message(escape_html(message.line), (@nicks if message.talk?))
%br