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

_ask_duo_button.html.haml « nav « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f17ccfc8afe67a23adea6790895dcc8c6f8239ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- if Gitlab.ee? && ::Gitlab::Llm::TanukiBot.show_breadcrumbs_entry_point_for?(user: current_user)
  - label = s_('TanukiBot|Ask GitLab Duo')
  = render Pajamas::ButtonComponent.new(variant: :confirm,
    category: :secondary,
    icon: 'tanuki-ai',
    size: 'small',
    button_options: { class: 'js-tanuki-bot-chat-toggle gl-ml-3 gl-display-none gl-md-display-inline', data: { track_action: 'click_button', track_label: 'tanuki_bot_breadcrumbs_button' }, aria: { label: label }}) do
    = label
  = render Pajamas::ButtonComponent.new(variant: :confirm,
    category: :secondary,
    icon: 'tanuki-ai',
    size: 'small',
    button_options: { class: 'js-tanuki-bot-chat-toggle has-tooltip gl-ml-3 gl-md-display-none', title: label, data: { track_action: 'click_button', track_label: 'tanuki_bot_breadcrumbs_button', placement: 'left' }, aria: { label: label }})