%= render 'homescreen/blocks/header', title: t(:label_project_plural) %>
<% if @newest_projects.empty? %>
<%= t('homescreen.additional.no_visible_projects') %>
<% else %>
<%= l('homescreen.additional.projects') %>
<% end %>
<% if User.current.allowed_to?(:add_project, nil, global: true) %>
<%= link_to new_project_path,
{ class: 'button -alt-highlight',
aria: {label: t(:label_project_new)},
title: t(:label_project_new)} do %>
<%= op_icon('button--icon icon-add') %>
<%= Project.model_name.human %>
<% end %>
<% end %>
<%# If any project exists %>
<% unless @newest_projects.empty? %>
<%= link_to l(:label_project_view_all), projects_path,
class: 'button -highlight-inverted',
title: l(:label_project_view_all) %>
<% end %>