This website requires JavaScript.
Explore
Help
Sign in
Andreas
/
tracks
Watch
1
Star
0
Fork
You've already forked tracks
0
mirror of
https://github.com/TracksApp/tracks.git
synced
2025-12-22 02:00:12 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
3f496db4b4
tracks
/
app
/
helpers
/
stats_helper.rb
8 lines
96 B
Ruby
Raw
Normal View
History
Unescape
Escape
Added the fantastic statistics work contributed by lrbalt! This is a work in progress. It's not rendering correctly for me in Firefox but is OK in Safari and there is at least one other minor error. Contribute bug reports and fixes to ticket #406. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@587 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-13 03:21:37 +00:00
module
StatsHelper
Split up the font size calculation The font size is a view concern, but the relative size belongs in the model layer.
2013-03-02 07:14:52 -05:00
def
font_size
(
cloud
,
tag
)
9
+
2
*
cloud
.
relative_size
(
tag
)
end
Added the fantastic statistics work contributed by lrbalt! This is a work in progress. It's not rendering correctly for me in Firefox but is OK in Safari and there is at least one other minor error. Contribute bug reports and fixes to ticket #406. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@587 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-13 03:21:37 +00:00
end
Reference in a new issue
Copy permalink