Vote #63715
完了Don't display 'show_diff' button on wiki's history page if there is only 1 version
100%
説明
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 %>
journals
I've applied your patch along with a test in r1749. Thank you for your contribution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------