Patch #1743

Don't display 'show_diff' button on wiki's history page if there is only 1 version

Added by Chaoqun Zou over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2008-08-04
Priority:NormalDue date:
Assignee:Eric Davis% Done:

100%

Category:UI
Target version:0.8

Description

On wiki's history page, if there is only 1 version, the radio buttons are hided but the show_diff button is still displayed.

To change this, modify the views\wiki\hisory.rhtml at line 33:

<%= submit_tag l(:label_view_diff), :class => 'small' %>

to:

<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %>

Associated revisions

Revision 1749
Added by Eric Davis over 9 years ago

Hiding the View Differences button when a wiki page's history only has one version.

Patch contributed by Chaoqun Zou (#1743)

History

#1 Updated by Eric Davis over 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Eric Davis
  • Target version set to 0.8
  • % Done changed from 0 to 100

I've applied your patch along with a test in r1749. Thank you for your contribution.

#2 Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF