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

_profile_tabs.html.haml « empty_states « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba5fbd9052805dc23368cc68edb8dce38248f4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- current_user_empty_message_description = local_assigns.fetch(:current_user_empty_message_description, nil)
- secondary_button_link = local_assigns.fetch(:secondary_button_link, nil)
- primary_button_link = local_assigns.fetch(:primary_button_link, nil)

.nothing-here-block
  .svg-content
    = image_tag illustration_path, size: '75'
    .text-content
      - if user_profile? && current_user.present? && current_user.username == params[:username]
        %h5= current_user_empty_message_header

        - if current_user_empty_message_description.present?
          %p= current_user_empty_message_description

        - if secondary_button_link.present?
          = link_button_to secondary_button_label, secondary_button_link, variant: :confirm, category: :secondary

        - if primary_button_link.present?
          = link_button_to primary_button_label, primary_button_link, variant: :confirm
      - else
        %h5= visitor_empty_message