summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-08 13:46:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-08 13:46:07 +0000
commit07882590bb50c8eba35fa5f70cb987a34f51e4a3 (patch)
tree0c6ad93a3a9f432a90db69cff5e9ace5d26a1dcd
parent9b59ea7256580c2f0d8322b1f3f526d5f0628963 (diff)
downloadredmine-07882590bb50c8eba35fa5f70cb987a34f51e4a3.tar.gz
redmine-07882590bb50c8eba35fa5f70cb987a34f51e4a3.zip
Strip out email address from authors in repository screens (#814).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1208 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/_dir_list_content.rhtml2
-rw-r--r--app/views/repositories/_revisions.rhtml2
-rw-r--r--app/views/repositories/annotate.rhtml2
-rw-r--r--app/views/repositories/revision.rhtml2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/repositories/_dir_list_content.rhtml b/app/views/repositories/_dir_list_content.rhtml
index 352575259..a7b83e817 100644
--- a/app/views/repositories/_dir_list_content.rhtml
+++ b/app/views/repositories/_dir_list_content.rhtml
@@ -25,7 +25,7 @@ end %>
<td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
<td class="revision"><%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td>
<td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
-<td class="author"><%=h(entry.lastrev.author) if entry.lastrev %></td>
+<td class="author"><%=h(entry.lastrev.author.to_s.split('<').first) if entry.lastrev %></td>
<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %>
<td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td>
</tr>
diff --git a/app/views/repositories/_revisions.rhtml b/app/views/repositories/_revisions.rhtml
index ea722329f..52992bb89 100644
--- a/app/views/repositories/_revisions.rhtml
+++ b/app/views/repositories/_revisions.rhtml
@@ -17,7 +17,7 @@
<td class="checkbox"><%= 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) %></td>
<td class="checkbox"><%= 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) %></td>
<td class="committed_on"><%= format_time(changeset.committed_on) %></td>
-<td class="author"><%=h changeset.committer %></td>
+<td class="author"><%=h changeset.committer.to_s.split('<').first %></td>
<td class="comments"><%= textilizable(changeset.comments) %></td>
</tr>
<% line_num += 1 %>
diff --git a/app/views/repositories/annotate.rhtml b/app/views/repositories/annotate.rhtml
index 3aa884104..28d99a393 100644
--- a/app/views/repositories/annotate.rhtml
+++ b/app/views/repositories/annotate.rhtml
@@ -12,7 +12,7 @@
<th class="line-num"><%= line_num %></th>
<td class="revision">
<%= (revision.identifier ? link_to(revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier) : revision.revision) if revision %></td>
- <td class="author"><%= h(revision.author) if revision %></td>
+ <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
<td class="line-code"><pre><%= line %></pre></td>
</tr>
<% line_num += 1 %>
diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml
index 80cfdf2b7..d60c0b0b7 100644
--- a/app/views/repositories/revision.rhtml
+++ b/app/views/repositories/revision.rhtml
@@ -22,7 +22,7 @@
<h2><%= l(:label_revision) %> <%= @changeset.revision %></h2>
<p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
-<em><%= @changeset.committer %>, <%= format_time(@changeset.committed_on) %></em></p>
+<em><%= @changeset.committer.to_s.split('<').first %>, <%= format_time(@changeset.committed_on) %></em></p>
<%= textilizable @changeset.comments %>