">
<%= link_to ver.version, :action => 'index', :page => @page.title, :version => ver.version %> |
<%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %> |
<%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true || $('version_from').value > #{ver.version}) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %> |
<%= format_time(ver.updated_on) %> |
<%= ver.author ? ver.author.name : "anonyme" %> |
<%=h ver.comments %> |
<% line_num += 1 %>
<% end %>