From 0399b85ab61858e593a8831039b5086444e5c7b1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 30 Nov 2008 13:38:07 +0000 Subject: [PATCH] Adds links between account and user's activity pages. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2070 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/account/show.rhtml | 2 +- app/views/projects/activity.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml index c86fa59c..8cdf9870 100644 --- a/app/views/account/show.rhtml +++ b/app/views/account/show.rhtml @@ -31,7 +31,7 @@
<% unless @events_by_day.empty? %> -

<%=l(:label_activity)%>

+

<%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :user_id => @user, :from => @events_by_day.keys.first %>

<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml index 585393e8..784a5ac3 100644 --- a/app/views/projects/activity.rhtml +++ b/app/views/projects/activity.rhtml @@ -1,4 +1,4 @@ -

<%= @author.nil? ? l(:label_activity) : l(:label_user_activity, @author.to_s) %>

+

<%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)) %>

<%= "#{l(:label_date_from)} #{format_date(@date_to - @days)} #{l(:label_date_to).downcase} #{format_date(@date_to-1)}" %>