From 374582b1504be68b943b041f6d50b95cc5f2169a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 12 Jul 2020 11:35:26 +0000 Subject: [PATCH] add empty line after guard clause to app/helpers/application_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19893 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d3dc9649b..8cb07bb23 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -188,6 +188,7 @@ module ApplicationHelper # Generates a link to a version def link_to_version(version, options = {}) return '' unless version && version.is_a?(Version) + options = {:title => format_date(version.effective_date)}.merge(options) link_to_if version.visible?, format_version_name(version), version_path(version), options end @@ -523,6 +524,7 @@ module ApplicationHelper [projects, projects_label, true] ].each do |projects, label, is_tree| next if projects.blank? + s << content_tag(:strong, l(label)) if is_tree project_tree(projects, &build_project_link) @@ -781,6 +783,7 @@ module ApplicationHelper @used_accesskeys ||= [] key = Redmine::AccessKeys.key_for(s) return nil if @used_accesskeys.include?(key) + @used_accesskeys << key key end @@ -803,6 +806,7 @@ module ApplicationHelper raise ArgumentError, 'invalid arguments to textilizable' end return '' if text.blank? + project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil) @only_path = only_path = options.delete(:only_path) == false ? false : true @@ -1246,6 +1250,7 @@ module ApplicationHelper def parse_sections(text, project, obj, attr, only_path, options) return unless options[:edit_section_links] + text.gsub!(HEADING_RE) do heading, level = $1, $2 @current_section += 1 @@ -1697,6 +1702,7 @@ module ApplicationHelper def export_csv_encoding_select_tag return if l(:general_csv_encoding).casecmp('UTF-8') == 0 + options = [l(:general_csv_encoding), 'UTF-8'] content_tag(:p) do concat( -- 2.39.5