debian-mirror-gitlab/lib/sidebars/search/panel.rb
2023-07-09 08:55:56 +05:30

20 lines
414 B
Ruby

# frozen_string_literal: true
module Sidebars
module Search
class Panel < ::Sidebars::Panel
override :aria_label
def aria_label
_('Search results')
end
override :super_sidebar_context_header
def super_sidebar_context_header
@super_sidebar_context_header ||= {
title: aria_label,
icon: 'search-results'
}
end
end
end
end