debian-mirror-gitlab/lib/sidebars/search/panel.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
414 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# frozen_string_literal: true
module Sidebars
module Search
class Panel < ::Sidebars::Panel
override :aria_label
def aria_label
2023-07-09 08:55:56 +05:30
_('Search results')
2023-06-20 00:43:36 +05:30
end
override :super_sidebar_context_header
def super_sidebar_context_header
@super_sidebar_context_header ||= {
title: aria_label,
2023-07-09 08:55:56 +05:30
icon: 'search-results'
2023-06-20 00:43:36 +05:30
}
end
end
end
end