@@ -94,6 +94,7 class RepositoriesController < ApplicationController | |||
|
94 | 94 | (show_error_not_found; return) unless @entry |
|
95 | 95 | @changesets = @repository.latest_changesets(@path, @rev, Setting.repository_log_display_limit.to_i) |
|
96 | 96 | @properties = @repository.properties(@path, @rev) |
|
97 | @changeset = @repository.find_changeset_by_name(@rev) | |
|
97 | 98 | end |
|
98 | 99 | |
|
99 | 100 | def revisions |
@@ -127,17 +128,19 class RepositoriesController < ApplicationController | |||
|
127 | 128 | else |
|
128 | 129 | # Prevent empty lines when displaying a file with Windows style eol |
|
129 | 130 | @content.gsub!("\r\n", "\n") |
|
131 | @changeset = @repository.find_changeset_by_name(@rev) | |
|
130 | 132 | end |
|
131 | 133 | end |
|
132 | ||
|
134 | ||
|
133 | 135 | def annotate |
|
134 | 136 | @entry = @repository.entry(@path, @rev) |
|
135 | 137 | (show_error_not_found; return) unless @entry |
|
136 | 138 | |
|
137 | 139 | @annotate = @repository.scm.annotate(@path, @rev) |
|
138 | 140 | (render_error l(:error_scm_annotate); return) if @annotate.nil? || @annotate.empty? |
|
141 | @changeset = @repository.find_changeset_by_name(@rev) | |
|
139 | 142 | end |
|
140 | ||
|
143 | ||
|
141 | 144 | def revision |
|
142 | 145 | raise ChangesetNotFound if @rev.blank? |
|
143 | 146 | @changeset = @repository.find_changeset_by_name(@rev) |
@@ -16,6 +16,6 dirs.each do |dir| | |||
|
16 | 16 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> |
|
17 | 17 | <% end %> |
|
18 | 18 | |
|
19 |
<%= "@ #{h revision}" if |
|
|
19 | <%= "@ #{h format_revision(@changeset)}" if @changeset %> | |
|
20 | 20 | |
|
21 | 21 | <% html_title(with_leading_slash(path)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now