diff options
author | Dennis Tang <750946-dennis@users.noreply.gitlab.com> | 2019-02-06 09:11:39 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-02-06 09:11:39 +0000 |
commit | 5c4d0589fa51371fe710b8c7dbf16bfa59b4c5a6 (patch) | |
tree | 7ca91bb59922b8c877524cace4cebb086f87efd6 /app/views/events | |
parent | 591380a3f1bf1b5220f176f082af297831a1886e (diff) | |
download | gitlab-ce-5c4d0589fa51371fe710b8c7dbf16bfa59b4c5a6.tar.gz |
Resolve "Empty states for profile page"
Diffstat (limited to 'app/views/events')
-rw-r--r-- | app/views/events/_events.html.haml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/views/events/_events.html.haml b/app/views/events/_events.html.haml index 6ae4c334f7f..e1b7804c5a7 100644 --- a/app/views/events/_events.html.haml +++ b/app/views/events/_events.html.haml @@ -1,4 +1,18 @@ +- illustration_path = 'illustrations/profile-page/activity.svg' +- current_user_empty_message_header = s_('UserProfile|Join or create a group to start contributing by commenting on issues or submitting merge requests!') +- primary_button_label = _('New group') +- primary_button_link = new_group_path +- secondary_button_label = _('Explore groups') +- secondary_button_link = explore_groups_path +- visitor_empty_message = _('No activities found') + - if @events.present? = render partial: 'events/event', collection: @events - else - .nothing-here-block= _("No activities found") + = render partial: 'shared/empty_states/profile_tabs', locals: { illustration_path: illustration_path, + current_user_empty_message_header: current_user_empty_message_header, + primary_button_label: primary_button_label, + primary_button_link: primary_button_link, + secondary_button_label: secondary_button_label, + secondary_button_link: secondary_button_link, + visitor_empty_message: visitor_empty_message } |