Project

General

Profile

Patch #253 ยป svn-repass.diff

Michael Pirogov, 2008-02-03 11:02

View differences:

app/views/repositories/_revisions.rhtml (working copy)
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">
21
<% scm_user = User.find_by_login(changeset.committer) -%>
22
<%= if changeset.committer and not scm_user.nil? 
23
		link_to_user(scm_user) 
24
	else
25
		h(changeset.committer)
26
	end %>
27
</td>
21 28
<td class="comments"><%= textilizable(changeset.comments) %></td>
22 29
</tr>
23 30
<% line_num += 1 %>
app/views/repositories/_dir_list_content.rhtml (working copy)
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">
29
<% scm_user = User.find_by_login(entry.lastrev.author) -%>
30
<%= if entry.lastrev and not scm_user.nil? 
31
		link_to_user(scm_user) 
32
	else
33
		h(entry.lastrev.author)
34
	end %>
35
</td>
29 36
<% changeset = @project.repository.changesets.find_by_revision(entry.lastrev.identifier) if entry.lastrev %>
30 37
<td class="comments"><%=h truncate(changeset.comments, 50) unless changeset.nil? %></td>
31 38
</tr>
app/views/issues/_changesets.rhtml (working copy)
2 2
<% changesets.each do |changeset| %>
3 3
    <li class="<%= cycle('odd', 'even') %>"><%= link_to("#{l(:label_revision)} #{changeset.revision}",
4 4
                    :controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision) %><br />
5
        <em><%= changeset.committer %>, <%= format_time(changeset.committed_on) %></em>
5
        <em>
6
		<% scm_user = User.find_by_login(changeset.committer) -%>
7
		<%= if changeset.committer and not scm_user.nil? 
8
				link_to_user(scm_user) 
9
			else
10
				h(changeset.committer)
11
			end %>, <%= format_time(changeset.committed_on) %></em>
6 12
    <%= textilizable(changeset, :comments) %></li>
7 13
<% end %>
8 14
</ul>
activity.rhtml (working copy)
6 6
  <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| %>
7 7
    <li><p><%= format_time(e.event_datetime, false) %> <%= link_to truncate(e.event_title, 100), e.event_url %><br />
8 8
    <% unless e.event_description.blank? %><em><%= truncate(e.event_description, 500) %></em><br /><% end %>
9
    <span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></p></li>
9
    <span class="author">
10
       <% scm_user = User.find_by_login(e.event_author) -%>
11
       <%= if e.event_author and not scm_user.nil? and e.respond_to?(:event_author)
12
                       link_to_user(scm_user) 
13
               else
14
                       h(e.event_author)
15
               end %>
16
       </span></p></li>
10 17
  <% end %>
11 18
  </ul>
12 19
<% end %>
    (1-1/1)