Index: lang/en.yml =================================================================== --- lang/en.yml (revision 1607) +++ lang/en.yml (working copy) @@ -548,6 +548,7 @@ button_annotate: Annotate button_update: Update button_configure: Configure +button_history: History status_active: active status_registered: registered Index: app/controllers/repositories_controller.rb =================================================================== --- app/controllers/repositories_controller.rb (revision 1607) +++ app/controllers/repositories_controller.rb (working copy) @@ -47,7 +47,7 @@ @repository.destroy redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'repository' end - + def show # check if new revisions have been committed in the repository @repository.fetch_changesets if Setting.autofetch_changesets? @@ -61,6 +61,7 @@ end def browse + @changeset = @repository.changesets.find_by_revision(@rev) @entries = @repository.entries(@path, @rev) if request.xhr? @entries ? render(:partial => 'dir_list_content') : render(:nothing => true) @@ -96,6 +97,7 @@ end def entry + @changeset = @repository.changesets.find_by_revision(@rev) @entry = @repository.scm.entry(@path, @rev) show_error_not_found and return unless @entry @@ -116,6 +118,7 @@ end def annotate + @entry = @repository.scm.entry(@path, @rev) @annotate = @repository.scm.annotate(@path, @rev) render_error l(:error_scm_annotate) and return if @annotate.nil? || @annotate.empty? rescue Redmine::Scm::Adapters::CommandFailed => e @@ -142,6 +145,7 @@ end def diff + @entry = @repository.scm.entry(@path, @rev) @diff_type = params[:type] || User.current.pref[:diff_type] || 'inline' @diff_type = 'inline' unless %w(inline sbs).include?(@diff_type) Index: app/views/repositories/_navigation.rhtml =================================================================== --- app/views/repositories/_navigation.rhtml (revision 1607) +++ app/views/repositories/_navigation.rhtml (working copy) @@ -16,6 +16,7 @@ / <%= link_to h(filename), :action => 'changes', :id => @project, :path => "#{link_path}/#{filename}", :rev => @rev %> <% end %> -<%= "@ #{revision}" if revision %> - +<% if revision %> +@ <%= link_to "#{revision}", :action => 'revision', :id => @project, :rev => @rev %> +<% end %> <% html_title(with_leading_slash(path)) -%> Index: app/views/repositories/revision.rhtml =================================================================== --- app/views/repositories/revision.rhtml (revision 1607) +++ app/views/repositories/revision.rhtml (working copy) @@ -1,23 +1,4 @@ -