diff options
author | David A. Cuadrado <krawek@gmail.com> | 2008-03-11 21:05:48 -0500 |
---|---|---|
committer | David A. Cuadrado <krawek@gmail.com> | 2008-03-20 16:36:06 -0500 |
commit | 31a96379c9642b75f3b32fd4b20d6a602c90a63f (patch) | |
tree | 8da38f0e3adf01efd877fdae0a8dd60dd80c0f44 | |
parent | 95f6393fe96e214172b9f49edad3227096f383a1 (diff) | |
download | gitorious-mainline-outdated-31a96379c9642b75f3b32fd4b20d6a602c90a63f.zip gitorious-mainline-outdated-31a96379c9642b75f3b32fd4b20d6a602c90a63f.tar.gz gitorious-mainline-outdated-31a96379c9642b75f3b32fd4b20d6a602c90a63f.tar.bz2 |
Added avatar to events
-rw-r--r-- | app/views/events/_events.html.erb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/app/views/events/_events.html.erb b/app/views/events/_events.html.erb index 0cacb45..156b706 100644 --- a/app/views/events/_events.html.erb +++ b/app/views/events/_events.html.erb @@ -61,10 +61,17 @@ when "delete merge request" action = "<b>deleted merge request</b> from #{link_to h(project.title), project_path(project)}/#{link_to h(repo.name), project_repository_url(project, repo)}" end -%> - <%= link_to event.user.login, user_path(event.user) %> <%= action %> <%= time_ago_in_words(event.date) %><br/> - <% if body %> - <%= body %> - <% end %> + <div style="margin: 20px; padding-bottom: 10px;" > + <% unless action.empty? %> + <%= link_to event.user.login, user_path(event.user) %> <%= action %> <%= time_ago_in_words(event.date) %> + <% end %><br/> + <div style="float: left; margin: 5px;"> + <%= gravatar(event.user.email, :size => 32) %> + </div> + <% if body %> + <%= body %> + <% end %> + </div> </li> <% end -%> </ul> |