% @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
<%= _("Name") %> |
<%= @project.name %> |
<% if (@project.description != nil && @project.description != "" ) %>
<%= _("Description") %> |
<%= @project.description %> |
<% end %>
<%= _("Repository address") %> |
<%= @project.repository_url %> |
<% if @svn_error %>
ERROR
<%= @svn_error %>
<%= _("Possible causes:") %>
-
<%= _("Server is down") %>
-
<% _("URL invalid, in this case create another project with the correct URL
(Sorry for the incovenience, we're working for a better solution)") %>
<%else%>
<%= _("Metric Results") %>
<% if @project.metrics_calculated? %>
<% _("Total Metrics") %>
<% @total_metrics.each_with_index do |metric, index| %>
<%= metric.name %> |
<%= metric.value %> |
<% end %>
<%= _("Statistical Metrics") %>
<% @statistical_metrics.each_key do |metric_name| %>
<%= "#{metric_name}_average: #{@statistical_metrics[metric_name]["average"]}" %>
<% @statistical_metrics[metric_name].each do |stat_name, stat_value| %>
<% if stat_name != "average" %>
-
<%= "#{metric_name}_#{stat_name}: #{stat_value}" %>
<% end %>
<% end %>
<% end %>
<% else %>
<%= _("Wait a moment while the metrics are calculated.
Reload the page manually in a few moment. ") %>
<% end %>
<% end %>