Don't include changes div, if there is only one revision
This commit is contained in:
parent
3107341af5
commit
af50549e3e
|
@ -7,7 +7,9 @@
|
|||
<%= @page.display_content %>
|
||||
</div>
|
||||
|
||||
<div id="changes" style="display: none">
|
||||
|
||||
<% if @page.revisions.length > 1 %>
|
||||
<div id="changes" style="display: none">
|
||||
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
||||
<small>
|
||||
Showing changes from revision #<%= @page.number - 1 %> to #<%= @page.number %>:
|
||||
|
@ -16,7 +18,8 @@
|
|||
</p>
|
||||
|
||||
<%= @page.display_diff %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="byline">
|
||||
<%= @page.revisions? ? "Revised" : "Created" %> on <%= @page.pretty_created_at %>
|
||||
|
|
Loading…
Reference in a new issue