diff options
author | Go MAEDA <maeda@farend.jp> | 2023-04-30 04:00:57 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-04-30 04:00:57 +0000 |
commit | d97beec1d4cc773dd8fb8a5245efb040235f86b1 (patch) | |
tree | ddbd3486f207256f3072dfacf3598487792cf5de /app/controllers | |
parent | 24fc9a2a8e1b3f8212db890d7f82baf2d7a4b535 (diff) | |
download | redmine-d97beec1d4cc773dd8fb8a5245efb040235f86b1.tar.gz redmine-d97beec1d4cc773dd8fb8a5245efb040235f86b1.zip |
Add "View annotation prior to this change" button in the annotate view of Git (#35432).
Patch by Takenori TAKAKI.
git-svn-id: https://svn.redmine.org/redmine/trunk@22217 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/repositories_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index c143ed233..9ef62edd1 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -208,6 +208,10 @@ class RepositoriesController < ApplicationController elsif @annotate.lines.sum(&:size) > Setting.file_max_size_displayed.to_i.kilobyte @annotate = nil @error_message = l(:error_scm_annotate_big_text_file) + else + # the SCM adapter supports "View annotation prior to this change" links + # and the entry has previous annotations + @has_previous = @annotate.previous_annotations.any? end @changeset = @repository.find_changeset_by_name(@rev) end |