More display tweaks for redline diff pages.
This commit is contained in:
parent
9d511cd480
commit
87318e6e62
|
@ -9,7 +9,7 @@
|
||||||
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
||||||
<small>
|
<small>
|
||||||
Showing changes from revision #<%= @page.revisions.size - 1 %> to #<%= @page.revisions.size %>:
|
Showing changes from revision #<%= @page.revisions.size - 1 %> to #<%= @page.revisions.size %>:
|
||||||
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del>
|
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del> | <del class="diffmod">Chan</del><ins class="diffmod">ged</ins>
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
<%= @renderer.display_diff %>
|
<%= @renderer.display_diff %>
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
<p style="background: #eee; padding: 3px; border: 1px solid silver">
|
||||||
<small>
|
<small>
|
||||||
Showing changes from revision #<%= @revision_number - 1 %> to #<%= @revision_number %>:
|
Showing changes from revision #<%= @revision_number - 1 %> to #<%= @revision_number %>:
|
||||||
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del>
|
<ins class="diffins">Added</ins> | <del class="diffdel">Removed</del> | <del class="diffmod">Chan</del><ins class="diffmod">ged</ins>
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
<%= @renderer.display_diff %>
|
<%= @renderer.display_diff %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= @renderer.display_content %>
|
<%= @renderer.display_content %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div> <!-- Revision -->
|
||||||
|
|
||||||
<div class="byline">
|
<div class="byline">
|
||||||
<%= "Revision from #{format_date(@revision.revised_at)} by" %>
|
<%= "Revision from #{format_date(@revision.revised_at)} by" %>
|
||||||
|
|
|
@ -162,10 +162,16 @@ padding-top:1px;
|
||||||
|
|
||||||
.diffdel,del.diffmod, .diffdel *, del.diffmod * {
|
.diffdel,del.diffmod, .diffdel *, del.diffmod * {
|
||||||
background-color:#FAA;
|
background-color:#FAA;
|
||||||
|
text-decoration:strike-through;
|
||||||
}
|
}
|
||||||
|
|
||||||
.diffins,ins.diffmod, .diffins *, ins.diffmod * {
|
.diffins,ins.diffmod, .diffins *, ins.diffmod * {
|
||||||
background-color:#AFA;
|
background-color:#AFA;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diffmod, .diffmod * {
|
||||||
|
border: 2px solid #FE0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
|
|
Loading…
Reference in a new issue