annotate .svn/pristine/cd/cd08316525f41ab12ddac1b7021cfbcc0f617e7e.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 <%= wiki_page_breadcrumb(@page) %>
Chris@1296 2
Chris@1296 3 <h2><%= h(@page.pretty_title) %></h2>
Chris@1296 4
Chris@1296 5 <h3><%= l(:label_history) %></h3>
Chris@1296 6
Chris@1296 7 <%= form_tag({:controller => 'wiki', :action => 'diff',
Chris@1296 8 :project_id => @page.project, :id => @page.title},
Chris@1296 9 :method => :get) do %>
Chris@1296 10 <table class="list wiki-page-versions">
Chris@1296 11 <thead><tr>
Chris@1296 12 <th>#</th>
Chris@1296 13 <th></th>
Chris@1296 14 <th></th>
Chris@1296 15 <th><%= l(:field_updated_on) %></th>
Chris@1296 16 <th><%= l(:field_author) %></th>
Chris@1296 17 <th><%= l(:field_comments) %></th>
Chris@1296 18 <th></th>
Chris@1296 19 </tr></thead>
Chris@1296 20 <tbody>
Chris@1296 21 <% show_diff = @versions.size > 1 %>
Chris@1296 22 <% line_num = 1 %>
Chris@1296 23 <% @versions.each do |ver| %>
Chris@1296 24 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
Chris@1296 25 <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
Chris@1296 26 <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@1296 27 <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@1296 28 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
Chris@1296 29 <td class="author"><%= link_to_user ver.author %></td>
Chris@1296 30 <td class="comments"><%=h ver.comments %></td>
Chris@1296 31 <td class="buttons">
Chris@1296 32 <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
Chris@1296 33 <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %>
Chris@1296 34 </td>
Chris@1296 35 </tr>
Chris@1296 36 <% line_num += 1 %>
Chris@1296 37 <% end %>
Chris@1296 38 </tbody>
Chris@1296 39 </table>
Chris@1296 40 <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>
Chris@1296 41 <span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span>
Chris@1296 42 <% end %>