diff options
author | Jochen Topf <jochen@topf.org> | 2014-09-23 11:37:36 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-09-23 11:37:36 +0200 |
commit | f25f3ea4784b56e8a3207dc1781d4fa5dd263dbe (patch) | |
tree | 967863c0eb83fe540b4e79eb7e0863ad711d5eee /web/views | |
parent | cf4c33c23aaa06082dd9fa8dc0361e1fade3f03e (diff) | |
download | taginfo-f25f3ea4784b56e8a3207dc1781d4fa5dd263dbe.tar taginfo-f25f3ea4784b56e8a3207dc1781d4fa5dd263dbe.tar.gz |
Use 0.00% instead of 0% for consistency.
Refs #72.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/embed/tag.erb | 6 |
1 files 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 @@ <tr> <td class="ft"><img src="/img/types/node.16.png" width="16" height="16" alt="Nodes" title="Nodes with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"></td> <td class="ft" title="Nodes with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"><%= @dbtag['count_nodes'].to_i.to_s_with_ts %></td> - <td title="Fraction of all nodes with key '<%= escape_html(@key) %>'"><%= @dbkey['count_nodes'] == 0 ? '0' : ('%.2f' % (@dbtag['count_nodes'].to_f / @dbkey['count_nodes'].to_f * 100)) %> %</td> + <td title="Fraction of all nodes with key '<%= escape_html(@key) %>'"><%= @dbkey['count_nodes'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_nodes'].to_f / @dbkey['count_nodes'].to_f * 100)) %> %</td> </tr> <tr> <td class="ft"><img src="/img/types/way.16.png" width="16" height="16" alt="Ways" title="Ways with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"></td> <td class="ft" title="Ways with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"><%= @dbtag['count_ways'].to_i.to_s_with_ts %></td> - <td title="Fraction of all ways with key '<%= escape_html(@key) %>'"><%= @dbkey['count_ways'] == 0 ? '0' : ('%.2f' % (@dbtag['count_ways'].to_f / @dbkey['count_ways'].to_f * 100)) %> %</td> + <td title="Fraction of all ways with key '<%= escape_html(@key) %>'"><%= @dbkey['count_ways'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_ways'].to_f / @dbkey['count_ways'].to_f * 100)) %> %</td> </tr> <tr> <td class="ft"><img src="/img/types/relation.16.png" width="16" height="16" alt="Relations" title="Relations with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"></td> <td class="ft" title="Relations with tag '<%= escape_html(@key) %>=<%= escape_html(@value) %>' in database"><%= @dbtag['count_relations'].to_i.to_s_with_ts %></td> - <td title="Fraction of all relations with key '<%= escape_html(@key) %>'"><%= @dbkey['count_relations'] == 0 ? '0' : ('%.2f' % (@dbtag['count_relations'].to_f / @dbkey['count_relations'].to_f * 100)) %> %</td> + <td title="Fraction of all relations with key '<%= escape_html(@key) %>'"><%= @dbkey['count_relations'] == 0 ? '0.00' : ('%.2f' % (@dbtag['count_relations'].to_f / @dbkey['count_relations'].to_f * 100)) %> %</td> </tr> </table></div> <% end %> |