More display tweaks for redline diff pages.

This commit is contained in:
Jacques Distler 2007-02-04 10:18:21 -06:00
parent 9d511cd480
commit 87318e6e62
3 changed files with 9 additions and 3 deletions

View file

@ -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 %>

View file

@ -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" %>

View file

@ -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 {