]> source.dussan.org Git - redmine.git/commitdiff
Adds links between account and user's activity pages.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 13:38:07 +0000 (13:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2008 13:38:07 +0000 (13:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2070 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/account/show.rhtml
app/views/projects/activity.rhtml

index c86fa59c485f8177f56212e05a57d5aa5a68eea7..8cdf987043a413d3c097571b92661089fc2b8674 100644 (file)
@@ -31,7 +31,7 @@
 <div class="splitcontentright">
 
 <% unless @events_by_day.empty? %>
-<h3><%=l(:label_activity)%></h3>
+<h3><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :user_id => @user, :from => @events_by_day.keys.first %></h3>
 
 <p>
 <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
index 585393e848fa62fe61f5479189749693742e9d36..784a5ac390cb5a45f1564cca24d552d38bf99d7c 100644 (file)
@@ -1,4 +1,4 @@
-<h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, @author.to_s) %></h2>
+<h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)) %></h2>
 <p class="subtitle"><%= "#{l(:label_date_from)} #{format_date(@date_to - @days)} #{l(:label_date_to).downcase} #{format_date(@date_to-1)}" %></p>
 
 <div id="activity">