2019-03-02 22:35:43 +05:30
|
|
|
- current_user_empty_message_description = local_assigns.fetch(:current_user_empty_message_description, nil)
|
|
|
|
- secondary_button_link = local_assigns.fetch(:secondary_button_link, nil)
|
2021-03-11 19:13:27 +05:30
|
|
|
- primary_button_link = local_assigns.fetch(:primary_button_link, nil)
|
2019-03-02 22:35:43 +05:30
|
|
|
|
|
|
|
.nothing-here-block
|
|
|
|
.svg-content
|
|
|
|
= image_tag illustration_path, size: '75'
|
|
|
|
.text-content
|
2021-04-29 21:17:54 +05:30
|
|
|
- if user_profile? && current_user.present? && current_user.username == params[:username]
|
2019-03-02 22:35:43 +05:30
|
|
|
%h5= current_user_empty_message_header
|
|
|
|
|
|
|
|
- if current_user_empty_message_description.present?
|
|
|
|
%p= current_user_empty_message_description
|
|
|
|
|
|
|
|
- if secondary_button_link.present?
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to secondary_button_label, secondary_button_link, class: 'gl-button btn btn-confirm btn-inverted'
|
2019-03-02 22:35:43 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
- if primary_button_link.present?
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to primary_button_label, primary_button_link, class: 'gl-button btn btn-confirm'
|
2019-03-02 22:35:43 +05:30
|
|
|
- else
|
|
|
|
%h5= visitor_empty_message
|