Patch #235 » revision_link.diff
| app/controllers/repositories_controller.rb (作業コピー) | ||
|---|---|---|
|
@changes = @changeset.changes.find(:all,
|
||
|
:limit => @changes_pages.items_per_page,
|
||
|
:offset => @changes_pages.current.offset)
|
||
|
|
||
|
render :action => "revision", :layout => false if request.xhr?
|
||
|
end
|
||
|
|
||
| app/controllers/projects_controller.rb (作業コピー) | ||
|---|---|---|
|
@date_from = Date.civil(@year, @month, 1)
|
||
|
@date_to = @date_from >> 1
|
||
|
end
|
||
|
|
||
|
# check if new revisions have been committed in the repository
|
||
|
Repository.fetch_changesets if Setting.autofetch_changesets?
|
||
|
@event_types = %w(issues news files documents wiki_pages changesets)
|
||
|
@event_types.delete('wiki_pages') unless @project.wiki
|
||
|
@event_types.delete('changesets') unless @project.repository
|
||
| app/views/repositories/revision.rhtml (作業コピー) | ||
|---|---|---|
|
<tbody>
|
||
|
<% @changes.each do |change| %>
|
||
|
<tr class="<%= cycle 'odd', 'even' %>">
|
||
|
<td><div class="square action_<%= change.action %>"></div> <%= change.path %> <%= "(#{change.revision})" unless change.revision.blank? %></td>
|
||
|
<td><div class="square action_<%= change.action %>"></div> <%= link_to l(change.path), :action => 'entry', :id => @project.id, :path => change.path %> <%= "(#{change.revision})" unless change.revision.blank? %></td>
|
||
|
<td align="right">
|
||
|
<% if change.action == "M" %>
|
||
|
<%= link_to l(:label_view_diff), :action => 'diff', :id => @project, :path => change.path, :rev => @changeset.revision %>
|
||