Sha256: cd3eeecc7a9376108b72e0a6ed21963980f7f07a7c4a339adcb70dcf77ef1301
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
<% max_total = @platforms.inject(0) {|m,a| a[:total].to_i > m ? a[:total].to_i : m }%> <br><br> <table align=center width=90% border=1 cellpadding=3> <tr nowrap> <th width=1>#</th> <th width=10>Hits</th> <th>Operating System</th> <th width=10>Percentage</th> <th width=200></th> </tr> <% i=1; @platforms.each do |platform| width=((platform[:total].to_f/max_total)*200).round; width = 1 if width < 1 %> <tr nowrap> <td align=center><%= i %></td> <td align=center><%= platform[:total] %></td> <td align=left><%= platform[:name] %></td> <td align=center><%= sprintf("%000.2f",(platform[:total].to_f/@total_hits)*100) %>%</td> <td align=left><%=image_tag 'sitealizer/bar.gif', :width => width, :height => 3%></td> </tr> <% i+=1; end %> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | vendor/plugins/sitealizer/lib/app/views/sitealizer/_platforms.rhtml |