[Bps-public-commit] App-Changeloggr branch, master, updated. 893c30d4608e296679f3152980a7ebeb7fb5756b

sartak at bestpractical.com sartak at bestpractical.com
Wed May 20 15:21:36 EDT 2009


The branch, master has been updated
       via  893c30d4608e296679f3152980a7ebeb7fb5756b (commit)
      from  85c081a84c8650bfe69d5a08a4866f10f9f10ce2 (commit)

Summary of changes:
 lib/App/Changeloggr/View.pm |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 893c30d4608e296679f3152980a7ebeb7fb5756b
Author: Shawn M Moore <sartak at gmail.com>
Date:   Wed May 20 15:21:08 2009 -0400

    Make the identifier a link to the diff as well

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 1b94413..fc4971d 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -88,7 +88,17 @@ sub show_change {
 
         p {
             { class is "identifier" };
-            $change->identifier;
+            if (my $url = $change->external_source) {
+                hyperlink(
+                    label  => $change->identifier,
+                    url    => $url,
+                    target => "diff",
+                    class  => "external_source",
+                );
+            }
+            else {
+                outs $change->identifier;
+            }
         };
 
         p {

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



More information about the Bps-public-commit mailing list