diff options
Diffstat (limited to 'app/views/shared/projects/_list.html.haml')
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml index 09d63347ed6..a2c831bfd1c 100644 --- a/app/views/shared/projects/_list.html.haml +++ b/app/views/shared/projects/_list.html.haml @@ -10,13 +10,12 @@ - skip_pagination = false unless local_assigns[:skip_pagination] == true - compact_mode = false unless local_assigns[:compact_mode] == true - css_classes = "#{'compact' if compact_mode} #{'explore' if explore_projects_tab?}" -- contributed_projects_illustration_path = 'illustrations/profile-page/contributed-projects.svg' - contributed_projects_current_user_empty_message_header = s_('UserProfile|Explore public groups to find projects to contribute to.') - contributed_projects_visitor_empty_message = s_('UserProfile|This user hasn\'t contributed to any projects') -- starred_projects_illustration_path = 'illustrations/starred_empty.svg' +- starred_projects_illustration_path = 'illustrations/empty-state/empty-projects-starred-md.svg' - starred_projects_current_user_empty_message_header = s_('UserProfile|Star projects to track their progress and show your appreciation.') - starred_projects_visitor_empty_message = s_('UserProfile|This user hasn\'t starred any projects') -- own_projects_illustration_path = 'illustrations/profile-page/personal-project.svg' +- own_projects_illustration_path = 'illustrations/empty-state/empty-projects-md.svg' - own_projects_current_user_empty_message_header = s_('UserProfile|You haven\'t created any personal projects.') - own_projects_current_user_empty_message_description = s_('UserProfile|Your projects can be available publicly, internally, or privately, at your choice.') - own_projects_visitor_empty_message = s_('UserProfile|There are no projects available to be displayed here.') @@ -43,7 +42,7 @@ = paginate_collection(projects, remote: remote) unless skip_pagination - else - if @contributed_projects - = render partial: 'shared/empty_states/profile_tabs', locals: { illustration_path: contributed_projects_illustration_path, + = render partial: 'shared/empty_states/profile_tabs', locals: { illustration_path: own_projects_illustration_path, current_user_empty_message_header: contributed_projects_current_user_empty_message_header, primary_button_label: new_project_button_label, primary_button_link: new_project_button_link, |