summaryrefslogtreecommitdiffstats
path: root/app/views/projects/activity.rhtml
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2008-10-30 02:58:04 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2008-10-30 02:58:04 +0000
commited314caf7d6e871c214ac1896eaadcb5f5d21ed6 (patch)
treef05063af03cb962edfdd6d086aad6cc3ed2e2d1b /app/views/projects/activity.rhtml
parent1399f3dd122f6145d66b912e72dc6186dff884bb (diff)
downloadredmine-ed314caf7d6e871c214ac1896eaadcb5f5d21ed6.tar.gz
redmine-ed314caf7d6e871c214ac1896eaadcb5f5d21ed6.zip
Gravatar support for issue detai, user grid, and activity stream
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1962 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/activity.rhtml')
-rw-r--r--app/views/projects/activity.rhtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml
index fa25812ac..47d32e6a3 100644
--- a/app/views/projects/activity.rhtml
+++ b/app/views/projects/activity.rhtml
@@ -6,7 +6,10 @@
<h3><%= format_activity_day(day) %></h3>
<dl>
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
- <dt class="<%= e.event_type %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
+ <dt class="<%= e.event_type %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
+ <%= gravatar(e.user.mail, :size => "24") if e.respond_to?(:user) rescue nil%>
+ <%= gravatar(e.author.mail, :size => "24") if e.respond_to?(:author) rescue nil%>
+ <%= gravatar(e.committer.match('\\<.+?\\>')[0].gsub(/[<>]/, ''), :size => "24") if e.respond_to?(:committer) rescue nil%>
<span class="time"><%= format_time(e.event_datetime, false) %></span>
<%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>