[Bps-public-commit] App-Changeloggr branch, master, updated. 65a8e11bfca07b605de3587998aaee5d1e72162d

sartak at bestpractical.com sartak at bestpractical.com
Wed Aug 5 03:48:09 EDT 2009


The branch, master has been updated
       via  65a8e11bfca07b605de3587998aaee5d1e72162d (commit)
       via  1559e7927b463e0a79056b035e30466bd47bb8af (commit)
      from  c08a3ddcb0d09df56f78b8268beca284a97e2b56 (commit)

Summary of changes:
 etc/config.yml                    |    2 +-
 lib/App/Changeloggr/Model/User.pm |    6 ++++++
 lib/App/Changeloggr/View.pm       |    3 +++
 3 files changed, 10 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 1559e7927b463e0a79056b035e30466bd47bb8af
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Aug 5 03:46:18 2009 -0400

    Add a user column for strip_diff_anchor

diff --git a/etc/config.yml b/etc/config.yml
index d46ce48..a5b14fd 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -14,7 +14,7 @@ framework:
     Password: ''
     RecordBaseClass: Jifty::DBI::Record::Cachable
     User: ''
-    Version: 0.0.16
+    Version: 0.0.17
   DevelMode: 1
   L10N: 
     PoDir: share/po
diff --git a/lib/App/Changeloggr/Model/User.pm b/lib/App/Changeloggr/Model/User.pm
index 7da6d60..8608c7f 100644
--- a/lib/App/Changeloggr/Model/User.pm
+++ b/lib/App/Changeloggr/Model/User.pm
@@ -28,6 +28,12 @@ use App::Changeloggr::Record schema {
         label is 'Always show full diff',
         since '0.0.10';
 
+    column strip_diff_anchor =>
+        is boolean,
+        default is 0,
+        label is 'Strip full diff anchor',
+        since '0.0.17';
+
     column access_level =>
         is mandatory,
         default is 'guest',

commit 65a8e11bfca07b605de3587998aaee5d1e72162d
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed Aug 5 03:47:26 2009 -0400

    Strip diff anchor if the user wants it

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 4081434..6df9a0b 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -246,6 +246,9 @@ sub show_change {
 template '/change/external_source' => sub {
     my $url = get('url');
 
+    $url =~ s/#.*//
+        if Jifty->web->current_user->user_object->strip_diff_anchor;
+
     iframe {
         class is 'external_source';
         src is $url;

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



More information about the Bps-public-commit mailing list