<% @project = locals[:current_project] %> <% @total_metrics = @project.total_metrics if @project != nil %> <% @statistical_metrics = @project.statistical_metrics if @project != nil %> <% @svn_error = @project.svn_error if (@project != nil && @project.svn_error) %>

<%= @project.name %>'s Info

<% if (@project.description != nil && @project.description != "" ) %> <% end %>
<%= _("Name") %> <%= @project.name %>
<%= _("Description") %> <%= @project.description %>
<%= _("Repository address") %> <%= @project.repository_url %>

<% if @svn_error %>

ERROR

<%= @svn_error %>


<%= _("Possible causes:") %>

<%else%>

<%= _("Metric Results") %>

<% if @project.metrics_calculated? %>

<% _("Total Metrics") %>

<% @total_metrics.each_with_index do |metric, index| %> <% end %>
<%= metric.name %> <%= metric.value %>

<%= _("Statistical Metrics") %>

<% @statistical_metrics.each_key do |metric_name| %>
<%= "#{metric_name}_average: #{@statistical_metrics[metric_name]["average"]}" %>
<% end %> <% else %>
<%= _("Wait a moment while the metrics are calculated.
Reload the page manually in a few moment. ") %>
<% end %> <% end %>