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

_scope_menu_body.html.haml « nav « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a94c681e2d35bee0afd2f74c8e24d5b0a6935d4c (plain)
1
2
3
4
5
6
7
8
- avatar_size = sidebar_refactor_disabled? ? 40 : 32
- avatar_size_class = sidebar_refactor_disabled? ? 's40' : 's32'

= link_to scope_menu.link, **scope_menu.container_html_options, data: { qa_selector: 'project_scope_link' } do
  %span{ class: ['avatar-container', 'rect-avatar', 'project-avatar', avatar_size_class] }
    = source_icon(scope_menu.container, alt: scope_menu.title, class: ['avatar', 'avatar-tile', avatar_size_class], width: avatar_size, height: avatar_size)
  %span.sidebar-context-title
    = scope_menu.title