mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 12:08:47 +01:00
Fixes #1056 by not assuming that count is a string
This commit is contained in:
parent
932be0829b
commit
084dc26e73
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<%= link_to t.name,
|
||||
{:controller => "todos", :action => "tag", :id => t.name},
|
||||
{:style => "font-size: " + (9 + 2*(t.count.to_i-@tags_min)/@tags_divisor).to_s + "pt",
|
||||
:title => t.count+" actions"}
|
||||
:title => t.count.to_s+" actions"}
|
||||
-%> <%
|
||||
end
|
||||
end-%>
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<%= link_to t.name,
|
||||
{:controller => "todos", :action => "tag", :id => t.name},
|
||||
{:style => "font-size: " + (9 + 2*(t.count.to_i-@tags_min_90days)/@tags_divisor_90days).to_s + "pt",
|
||||
:title => t.count+" actions"}
|
||||
:title => t.count.to_s+" actions"}
|
||||
-%> <%
|
||||
end
|
||||
end-%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue