Permalink
Browse files

Italics for /me messages

  • Loading branch information...
1 parent a2dbaee commit af2277d620a667379c215b4513ae53128c2adfde @cschneid committed Dec 13, 2008
Showing with 6 additions and 2 deletions.
  1. +4 −0 public/styles.css
  2. +2 −2 views/log.erb
View
@@ -51,6 +51,10 @@ body {
list-style: none;
}
+div.me {
+ font-style: italic;
+}
+
div.nick {
width: 120px;
float: left;
View
@@ -34,14 +34,14 @@
<!-- Write out the message line -->
<div class="message">
<% unless (message.nick.blank? || message.nick == last_nick) then %>
- <div class="real nick <%= message.message_type %>">
+ <div class="real nick <%= (message.nick[0..0] == "*") ? "me" : "" %> <%= message.message_type %>">
<span class="nick"><%= message.nick %></span>
<a class="permalink" href="#<%= message.timestamp %>" name="<%= message.timestamp %>">#</a>
</div>
<% else %>
<div class="nick"></div>
<% end %>
- <div class="line <%= message.message_type %>">
+ <div class="line <%= (message.nick[0..0] == "*") ? "me" : "" %> <%= message.message_type %>">
<%= auto_link_urls(h message.line) %>
</div>
</div>

0 comments on commit af2277d

Please sign in to comment.