%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2017 the OpenProject Foundation (OPF)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
Copyright (C) 2006-2017 Jean-Philippe Lang
Copyright (C) 2010-2013 the ChiliProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<% content_for :header_tags do %>
<%= javascript_include_tag "project/description_handling.js" %>
<%= javascript_include_tag "project/filters.js" %>
<% end %>
<% html_title(t(:label_project_plural)) -%>
<%= toolbar title: t(:label_project_plural) do %>
<% if User.current.allowed_to?(:add_project, nil, global: true) %>
<% if project.archived? %>
<%= t('project.archive.archived') %>
<% end %>
<%= link_to_project(project, {}, {}, false) %>
<%= checked_image project.is_public? %>
<% if EnterpriseToken.allows_to?(:custom_fields_in_projects_list) %>
<% @custom_fields.each do |custom_field| %>
<% if project.custom_value_for(custom_field).present? %>
<% if custom_field.field_format == 'text' %>
<%= shorten_text(project.custom_value_for(custom_field).formatted_value, 20) %>
<% else %>
<%= project.custom_value_for(custom_field).formatted_value %>
<% end %>
<% else %>
<% end %>
<% end %>
<% end %>
<% if User.current.admin? %>
<%= number_to_human_size(project.required_disk_space, precision: 2) if project.required_disk_space.to_i > 0 %>
<%= format_date(project.created_on) %>
<%= format_date(project.latest_activity_at) %>
<% end %>
<% items = project_more_menu_items(project) %>
<% if items.any? %>
<%# toolbar and legacy-actions-more are only for styling purposes.
Because of multiple diverging implementations of dropdowns the
normal dropdown classes cannot be used any more without making special rules %>
<% items.each do |item| %>
<%= link_to(*item) %>
<% end %>
<% end %>
<% unless project.description.blank? %>
<% end %>