Sha256: 5007847e22c95c509e58f4c29c96f35384a96b030dd6158e6e572bac1e902eaa

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

<% max_total = @engines.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 align=left nowrap>
<th width=1>#</th>	
<th width=10>Hits</th>
<th align=center>Domain</th>
<th width=175></th>
</tr>
<% i=1; @engines.each do |engine| width=((engine[:total].to_f/max_total)*175).round; width = 1 if width < 1 %>
<tr nowrap>
<td align=center><%= i %></td>
<td align=center><%= engine[:total] %></td>
<td align=left><%= engine[:domain] %></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/_search_engines.rhtml