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