[Bps-public-commit] jifty-plugin-recordhistory branch, master, updated. 0.01-4-g4c14c4e

Thomas Sibley trs at bestpractical.com
Wed Feb 16 11:11:04 EST 2011


The branch, master has been updated
       via  4c14c4eb0c61bfd34908e317d5140b7f8515e559 (commit)
      from  847217b9134d98ac2ac8e4c4130a0732ba23444f (commit)

Summary of changes:
 lib/Jifty/Plugin/RecordHistory/View.pm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 4c14c4eb0c61bfd34908e317d5140b7f8515e559
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Feb 16 11:09:52 2011 -0500

    Provide a brief description of the object being viewed in the page title
    
    This relies on Jifty as of d4e1aa497499a6ec18059265af2ae36493ad9b42.

diff --git a/lib/Jifty/Plugin/RecordHistory/View.pm b/lib/Jifty/Plugin/RecordHistory/View.pm
index 7161532..88a6acb 100644
--- a/lib/Jifty/Plugin/RecordHistory/View.pm
+++ b/lib/Jifty/Plugin/RecordHistory/View.pm
@@ -37,7 +37,9 @@ sub object_type {
 
 sub page_title {
     my $self = shift;
-    return _('History for %1', $self->object_type);
+    return _('History for %1: %2',
+             $self->object_type,
+             $self->load_record->brief_description);
 }
 
 sub record_class {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list