Index: app/views/repositories/_revisions.rhtml
===================================================================
--- app/views/repositories/_revisions.rhtml (revision 1102)
+++ app/views/repositories/_revisions.rhtml (working copy)
@@ -17,7 +17,14 @@
<%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %> |
<%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %> |
<%= format_time(changeset.committed_on) %> |
-<%=h changeset.committer %> |
+
+<% scm_user = User.find_by_login(changeset.committer) -%>
+<%= if changeset.committer and not scm_user.nil?
+ link_to_user(scm_user)
+ else
+ h(changeset.committer)
+ end %>
+ |
<% line_num += 1 %>
Index: app/views/repositories/_dir_list_content.rhtml
===================================================================
--- app/views/repositories/_dir_list_content.rhtml (revision 1102)
+++ app/views/repositories/_dir_list_content.rhtml (working copy)
@@ -25,7 +25,14 @@
<%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %> |
<%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %> |
<%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %> |
-<%=h(entry.lastrev.author) if entry.lastrev %> |
+
+<% scm_user = User.find_by_login(entry.lastrev.author) -%>
+<%= if entry.lastrev and not scm_user.nil?
+ link_to_user(scm_user)
+ else
+ h(entry.lastrev.author)
+ end %>
+ |
<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %>
Index: app/views/issues/_changesets.rhtml
===================================================================
--- app/views/issues/_changesets.rhtml (revision 1102)
+++ app/views/issues/_changesets.rhtml (working copy)
@@ -2,7 +2,13 @@
<% changesets.each do |changeset| %>
<%= link_to("#{l(:label_revision)} #{changeset.revision}",
:controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision) %>
- <%= changeset.committer %>, <%= format_time(changeset.committed_on) %>
+
+ <% scm_user = User.find_by_login(changeset.committer) -%>
+ <%= if changeset.committer and not scm_user.nil?
+ link_to_user(scm_user)
+ else
+ h(changeset.committer)
+ end %>, <%= format_time(changeset.committed_on) %>
<%= textilizable(changeset, :comments) %>
<% end %>
Index: activity.rhtml
===================================================================
--- activity.rhtml (revision 1102)
+++ activity.rhtml (working copy)
@@ -6,7 +6,14 @@
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| %>
<%= format_time(e.event_datetime, false) %> <%= link_to truncate(e.event_title, 100), e.event_url %>
<% unless e.event_description.blank? %><%= truncate(e.event_description, 500) %>
<% end %>
- <%= e.event_author if e.respond_to?(:event_author) %>
+
+ <% scm_user = User.find_by_login(e.event_author) -%>
+ <%= if e.event_author and not scm_user.nil? and e.respond_to?(:event_author)
+ link_to_user(scm_user)
+ else
+ h(e.event_author)
+ end %>
+
<% end %>
<% end %>