diff --git a/app/views/wiki_page_versions/index.html.erb b/app/views/wiki_page_versions/index.html.erb index 22ee9d656..5ac1b2276 100644 --- a/app/views/wiki_page_versions/index.html.erb +++ b/app/views/wiki_page_versions/index.html.erb @@ -19,8 +19,16 @@ <% @wiki_page_versions.each do |wiki_page_version| %> - <%= radio_button_tag "thispage", wiki_page_version.id %> - <%= radio_button_tag "otherpage", wiki_page_version.id %> + + <% if params[:search] && params[:search][:wiki_page_id] %> + <%= radio_button_tag "thispage", wiki_page_version.id %> + <% end %> + + + <% if params[:search] && params[:search][:wiki_page_id] %> + <%= radio_button_tag "otherpage", wiki_page_version.id %> + <% end %> + <%= link_to wiki_page_version.title, wiki_page_path(wiki_page_version.wiki_page_id) %> <% if CurrentUser.is_admin? %> @@ -39,7 +47,9 @@ - <%= submit_tag "Diff" %> + <% if params[:search] && params[:search][:wiki_page_id] %> + <%= submit_tag "Diff" %> + <% end %> <% end %> <%= numbered_paginator(@wiki_page_versions) %>