From f25f3ea4784b56e8a3207dc1781d4fa5dd263dbe Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 23 Sep 2014 11:37:36 +0200 Subject: Use 0.00% instead of 0% for consistency. Refs #72. --- web/views/embed/tag.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/views/embed/tag.erb b/web/views/embed/tag.erb index 16b49f6..4a9b1c7 100644 --- a/web/views/embed/tag.erb +++ b/web/views/embed/tag.erb @@ -10,17 +10,17 @@ Nodes <%= @dbtag['count_nodes'].to_i.to_s_with_ts %> - <%= @dbkey['count_nodes'] == 0 ? '0' : ('%.2f' % (@dbtag['count_nodes'].to_f / @dbkey['count_nodes'].to_f * 100)) %> % + <%= @dbkey['count_nodes'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_nodes'].to_f / @dbkey['count_nodes'].to_f * 100)) %> % Ways <%= @dbtag['count_ways'].to_i.to_s_with_ts %> - <%= @dbkey['count_ways'] == 0 ? '0' : ('%.2f' % (@dbtag['count_ways'].to_f / @dbkey['count_ways'].to_f * 100)) %> % + <%= @dbkey['count_ways'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_ways'].to_f / @dbkey['count_ways'].to_f * 100)) %> % Relations <%= @dbtag['count_relations'].to_i.to_s_with_ts %> - <%= @dbkey['count_relations'] == 0 ? '0' : ('%.2f' % (@dbtag['count_relations'].to_f / @dbkey['count_relations'].to_f * 100)) %> % + <%= @dbkey['count_relations'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_relations'].to_f / @dbkey['count_relations'].to_f * 100)) %> % <% end %> -- cgit v1.2.3