diff options
author | Dennis Tang <750946-dennis@users.noreply.gitlab.com> | 2019-02-06 12:11:39 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-02-06 12:11:39 +0300 |
commit | 5c4d0589fa51371fe710b8c7dbf16bfa59b4c5a6 (patch) | |
tree | 7ca91bb59922b8c877524cace4cebb086f87efd6 /app/views/shared/empty_states | |
parent | 591380a3f1bf1b5220f176f082af297831a1886e (diff) |
Resolve "Empty states for profile page"
Diffstat (limited to 'app/views/shared/empty_states')
-rw-r--r-- | app/views/shared/empty_states/_profile_tabs.html.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/shared/empty_states/_profile_tabs.html.haml b/app/views/shared/empty_states/_profile_tabs.html.haml new file mode 100644 index 00000000000..6da40e1b059 --- /dev/null +++ b/app/views/shared/empty_states/_profile_tabs.html.haml @@ -0,0 +1,19 @@ +- current_user_empty_message_description = local_assigns.fetch(:current_user_empty_message_description, nil) +- secondary_button_link = local_assigns.fetch(:secondary_button_link, nil) + +.nothing-here-block + .svg-content + = image_tag illustration_path, size: '75' + .text-content + - if user_profile? and current_user.present? and 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_to secondary_button_label, secondary_button_link, class: 'btn btn-create btn-inverted' + + = link_to primary_button_label, primary_button_link, class: 'btn btn-success' + - else + %h5= visitor_empty_message |