Permalink
Browse files

a couple more tweaks, one to view, one to how notables are parsed

  • Loading branch information...
1 parent 56a5201 commit 5d89c704ac08bb6a10daa3d05ff6c58ea9d91ee7 @ianschreuder committed Oct 10, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 app/models/parser.rb
  2. +4 −4 app/views/notify/commit.html.erb
View
@@ -42,7 +42,7 @@ def parse_key(ckey, message)
value_end = message.index(";", value_start)
msg = message.slice(value_start, (value_end - value_start))
- return ckey.text + " => " + msg
+ return (ckey.text.blank?) ? msg : (ckey.text + " => " + msg)
end
end
@@ -7,16 +7,16 @@
<% if @keystrings.present? %>
<p style="margin-top: 40px; color: #999999;">[Notables]</p>
<% @keystrings.each do |string| %>
- <h3 style="font-weight: normal; margin: 0px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= string %></h3>
+ <h3 style="font-weight: normal; margin: -5px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= string %></h3>
<% end %>
<% end %>
<p style="margin-top: 40px; color: #999999;">[Committer]</p>
- <h3 style="font-weight: normal; margin: 0px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= @author.name %> <em><%= @author.email %></em></h3>
+ <h3 style="font-weight: normal; margin: -5px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= @author.name %> <em><%= @author.email %></em></h3>
<p style="margin-top: 40px; color: #999999;">[Branch]</p>
- <h3 style="font-weight: normal; margin: 0px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px; color: #800"><%= @branch %></h3>
+ <h3 style="font-weight: normal; margin: -5px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px; color: #800"><%= @branch %></h3>
<p style="margin-top: 40px; color: #999999;">[Commit messages]</p>
<% @messages.each do |message| %>
- <h3 style="font-weight: normal; margin: 0px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= message %></h3>
+ <h3 style="font-weight: normal; margin: -5px 10px 0px 10px; padding: 10px; color:#666; margin-top: -5px;"><%= message %></h3>
<% end %>
</div>
<br />

0 comments on commit 5d89c70

Please sign in to comment.