X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/34c44145a77003ac4fcabd0b865f039bc24f97f4..171c0354e74b4fdd73e25ea05f5b2d23c0d1642f:/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml diff --git a/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml b/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml new file mode 100644 index 0000000..9b7be8a --- /dev/null +++ b/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml @@ -0,0 +1,19 @@ +<% max_total = @robots.inject(0) {|m,a| a[:total].to_i > m ? a[:total].to_i : m }%> +

+ + + + + + + + +<% i=1; @robots.each do |robot| width=((robot[:total].to_f/max_total)*175).round; width = 1 if width < 1 %> + + + + + + +<% i+=1; end %> +
#HitsRobot/Crawler
<%= i %><%= robot[:total] %><%= robot[:name] %><%=image_tag 'sitealizer/bar.gif', :width => width, :height => 3%>