OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/homescreen/blocks/_projects.html.erb

31 lines
1.1 KiB

<h3 class="widget-box--header">
<span class="icon-context icon-projects"></span>
<span class="widget-box--header-title"><%= l(:label_project_plural) %></span>
</h3>
<% unless @newest_projects.empty? %>
<p class="widget-box--additional-info"><%= l('homescreen.additional.projects') %></p>
<ul class="widget-box--arrow-links">
<% @newest_projects.each do |project| %>
<li>
<%= link_to project, project_path(project), title: project.short_description %>
<small>(<%= format_date(project.created_on) %>)</small>
</li>
<% end %>
</ul>
<% end %>
<div class="widget-box--blocks--buttons">
<% 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 %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= Project.model_name.human %></span>
<% end %>
<% end %>
<%= link_to l(:label_project_view_all), projects_path,
class: 'button -highlight',
title: l(:label_project_view_all) %>
</div>