|
|
|
@ -49,7 +49,7 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
</caption> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th class="-short"> |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<span aria-describedby="wiki-id--description"> |
|
|
|
@ -115,14 +115,14 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% line_num = 1 %> |
|
|
|
|
<% @versions.each do |ver| %> |
|
|
|
|
<tr class="wiki-page-version"> |
|
|
|
|
<td class="id -short"><%= link_to h(ver.version), action: 'show', id: @page, project_id: @page.project, version: ver.version %></td> |
|
|
|
|
<td class="checkbox -short"> |
|
|
|
|
<td class="id"><%= link_to h(ver.version), action: 'show', id: @page, project_id: @page.project, version: ver.version %></td> |
|
|
|
|
<td class="checkbox"> |
|
|
|
|
<% if show_diff && (line_num < @versions.size) %> |
|
|
|
|
<label for="<%="cb-#{line_num}"%>" class="hidden-for-sighted"><%= t(:description_compare_from) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label> |
|
|
|
|
<%= radio_button_tag('version', ver.version, (line_num==1), id: "cb-#{line_num}", onclick: "jQuery(#'cbto-#{line_num+1}').attr('checked', true);") %> |
|
|
|
|
<% end %> |
|
|
|
|
</td> |
|
|
|
|
<td class="checkbox -short"> |
|
|
|
|
<td class="checkbox"> |
|
|
|
|
<% if show_diff && (line_num > 1) %> |
|
|
|
|
<label for="<%="cbto-#{line_num}"%>" class="hidden-for-sighted"><%= t(:description_compare_to) + ' ' + t(:label_version) + " " + h(ver.version.to_s) %></label> |
|
|
|
|
<%= radio_button_tag('version_from', ver.version, (line_num==2), id: "cbto-#{line_num}") %> |
|
|
|
|