##// END OF EJS Templates
Strip out email address from authors in repository screens (#814)....
Jean-Philippe Lang -
r1194:07882590bb50
parent child
Show More
@@ -25,7 +25,7 end %>
25 25 <td class="size"><%= (entry.size ? number_to_human_size(entry.size) : "?") unless entry.is_dir? %></td>
26 26 <td class="revision"><%= link_to(entry.lastrev.name, :action => 'revision', :id => @project, :rev => entry.lastrev.identifier) if entry.lastrev && entry.lastrev.identifier %></td>
27 27 <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
28 <td class="author"><%=h(entry.lastrev.author) if entry.lastrev %></td>
28 <td class="author"><%=h(entry.lastrev.author.to_s.split('<').first) if entry.lastrev %></td>
29 29 <% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %>
30 30 <td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td>
31 31 </tr>
@@ -17,7 +17,7
17 17 <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>
18 18 <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>
19 19 <td class="committed_on"><%= format_time(changeset.committed_on) %></td>
20 <td class="author"><%=h changeset.committer %></td>
20 <td class="author"><%=h changeset.committer.to_s.split('<').first %></td>
21 21 <td class="comments"><%= textilizable(changeset.comments) %></td>
22 22 </tr>
23 23 <% line_num += 1 %>
@@ -12,7 +12,7
12 12 <th class="line-num"><%= line_num %></th>
13 13 <td class="revision">
14 14 <%= (revision.identifier ? link_to(revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier) : revision.revision) if revision %></td>
15 <td class="author"><%= h(revision.author) if revision %></td>
15 <td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
16 16 <td class="line-code"><pre><%= line %></pre></td>
17 17 </tr>
18 18 <% line_num += 1 %>
@@ -22,7 +22,7
22 22 <h2><%= l(:label_revision) %> <%= @changeset.revision %></h2>
23 23
24 24 <p><% if @changeset.scmid %>ID: <%= @changeset.scmid %><br /><% end %>
25 <em><%= @changeset.committer %>, <%= format_time(@changeset.committed_on) %></em></p>
25 <em><%= @changeset.committer.to_s.split('<').first %>, <%= format_time(@changeset.committed_on) %></em></p>
26 26
27 27 <%= textilizable @changeset.comments %>
28 28
General Comments 0
You need to be logged in to leave comments. Login now