<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2015 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-2013 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. ++#%> <% html_title(l(:label_administration), l(:label_information_plural)) -%> <%= toolbar title: I18n.t('label_information_plural') %>
<%= call_hook(:view_admin_info_top) %> <% if (product_version = OpenProject::VERSION.product_version).present? %>
<%= l(:label_product_version) %>
<%= product_version %>
<% end %>
<%= l(:label_core_version) %>
<%= OpenProject::Info.versioned_name %> (<%= @db_adapter_name %>)
<% if (updated_on = OpenProject::VERSION.updated_on).present? %>
<%= l(:label_last_change_on) %>
<%= format_date(updated_on) %>
<% end %>
<%= content_tag :h3, I18n.t('label_system') %>
<% @checklist.each do |label, result| %>
<%= l(label) %>
<%= icon_wrapper((result ? 'icon-context icon-checkmark' : 'icon-context icon-bug'), (result ? l(:general_text_Yes) : l(:general_text_No))) %>
<% end %>
<%= content_tag :h3, I18n.t('label_system_storage') %> <% @storage_information.each_with_index do |(_,entries), i| %>

<%= l(:label_storage_group, identifier: i + 1) %>

<%= l(:label_storage_for) %>
<% entries[:labels].each do |l| %> <%= l %>
<% end %>
<%= l(:label_storage_free_space) %>
<%= number_to_human_size(entries[:data][:free], precision: 2) %>
<%= l(:label_storage_used_space) %>
<%= number_to_human_size(entries[:data][:used], precision: 2) %> (<%= entries[:data][:percent_used].round(2) %> %)
<% end %> <%= call_hook(:view_admin_info_bottom) %>