Project

General

Profile

Patch #253 ยป svn-repass.diff

Michael Pirogov, 2008-02-03 11:02

View differences:

app/views/repositories/_revisions.rhtml (working copy)
<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">
<% 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 %>
</td>
<td class="comments"><%= textilizable(changeset.comments) %></td>
</tr>
<% line_num += 1 %>
app/views/repositories/_dir_list_content.rhtml (working copy)
<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">
<% 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 %>
</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>
app/views/issues/_changesets.rhtml (working copy)
<% changesets.each do |changeset| %>
<li class="<%= cycle('odd', 'even') %>"><%= link_to("#{l(:label_revision)} #{changeset.revision}",
:controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision) %><br />
<em><%= changeset.committer %>, <%= format_time(changeset.committed_on) %></em>
<em>
<% 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) %></em>
<%= textilizable(changeset, :comments) %></li>
<% end %>
</ul>
activity.rhtml (working copy)
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| %>
<li><p><%= format_time(e.event_datetime, false) %> <%= link_to truncate(e.event_title, 100), e.event_url %><br />
<% unless e.event_description.blank? %><em><%= truncate(e.event_description, 500) %></em><br /><% end %>
<span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></p></li>
<span class="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 %>
</span></p></li>
<% end %>
</ul>
<% end %>
    (1-1/1)