annotate .svn/pristine/2d/2d90914cb67314627792a9dd72c779cc666b81ba.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= wiki_page_breadcrumb(@page) %>
Chris@1464 2
Chris@1464 3 <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)], l(:label_history) %>
Chris@1464 4
Chris@1464 5 <%= form_tag({:controller => 'wiki', :action => 'diff',
Chris@1464 6 :project_id => @page.project, :id => @page.title},
Chris@1464 7 :method => :get) do %>
Chris@1464 8 <table class="list wiki-page-versions">
Chris@1464 9 <thead><tr>
Chris@1464 10 <th>#</th>
Chris@1464 11 <th></th>
Chris@1464 12 <th></th>
Chris@1464 13 <th><%= l(:field_updated_on) %></th>
Chris@1464 14 <th><%= l(:field_author) %></th>
Chris@1464 15 <th><%= l(:field_comments) %></th>
Chris@1464 16 <th></th>
Chris@1464 17 </tr></thead>
Chris@1464 18 <tbody>
Chris@1464 19 <% show_diff = @versions.size > 1 %>
Chris@1464 20 <% line_num = 1 %>
Chris@1464 21 <% @versions.each do |ver| %>
Chris@1464 22 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
Chris@1464 23 <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
Chris@1464 24 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').attr('checked', true);") if show_diff && (line_num < @versions.size) %></td>
Chris@1464 25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
Chris@1464 26 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
Chris@1464 27 <td class="author"><%= link_to_user ver.author %></td>
Chris@1464 28 <td class="comments"><%=h ver.comments %></td>
Chris@1464 29 <td class="buttons">
Chris@1464 30 <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
Chris@1464 31 <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %>
Chris@1464 32 </td>
Chris@1464 33 </tr>
Chris@1464 34 <% line_num += 1 %>
Chris@1464 35 <% end %>
Chris@1464 36 </tbody>
Chris@1464 37 </table>
Chris@1464 38 <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
Chris@1464 39 <span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span>
Chris@1464 40 <% end %>