Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
commit419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch)
tree1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /app/helpers/application_helper.rb
parent1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff)
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e3a630024d9..57937353955 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -123,7 +123,7 @@ module ApplicationHelper
{
page: body_data_page,
page_type_id: controller.params[:id],
- find_file: find_file_path,
+ find_file: find_file_path(ref_type: @ref_type),
group: @group&.path,
group_full_path: @group&.full_path
}.merge(project_data)
@@ -404,6 +404,10 @@ module ApplicationHelper
end
def add_page_specific_style(path, defer: true)
+ @already_added_styles ||= Set.new
+ return if @already_added_styles.include?(path)
+
+ @already_added_styles.add(path)
content_for :page_specific_styles do
if defer
stylesheet_link_tag_defer path
@@ -468,7 +472,7 @@ module ApplicationHelper
end
def hidden_resource_icon(resource, css_class: nil)
- issuable_title = _('This %{issuable} is hidden because its author has been banned')
+ issuable_title = _('This %{issuable} is hidden because its author has been banned.')
case resource
when Issue