[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. e3e3ba8677e8b18a43e9796f30f680b0864d009d
Shawn Moore
sartak at bestpractical.com
Mon Feb 14 15:42:09 EST 2011
The branch, master has been updated
via e3e3ba8677e8b18a43e9796f30f680b0864d009d (commit)
from 28d816ef045ceb984bf8ca53c07e74dcd36e1be1 (commit)
Summary of changes:
lib/Jifty/Plugin/RecordHistory/View.pm | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit e3e3ba8677e8b18a43e9796f30f680b0864d009d
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Feb 14 15:41:59 2011 -0500
Mark up updates with field-name, old-value, new-value
diff --git a/lib/Jifty/Plugin/RecordHistory/View.pm b/lib/Jifty/Plugin/RecordHistory/View.pm
index 22fcfa4..0a2fab5 100644
--- a/lib/Jifty/Plugin/RecordHistory/View.pm
+++ b/lib/Jifty/Plugin/RecordHistory/View.pm
@@ -185,7 +185,21 @@ template 'change_field' => sub {
li {
{ class is 'change-field' };
- _("%1 changed from '%2' to '%3'", $field, $old, $new);
+ span {
+ class is 'field-name';
+ outs $field;
+ };
+ outs " changed from '";
+ span {
+ class is 'old-value';
+ outs $old;
+ };
+ outs "' to '";
+ span {
+ class is 'new-value';
+ outs $new;
+ };
+ outs "'";
};
};
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list