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