ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17854: LJSUP-7377: Wishlist

Committer: ssafronova
LJSUP-7377: Wishlist
U   trunk/cgi-bin/LJ/Widget/FriendBirthdays.pm
U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/cgi-bin/LJ/Widget/FriendBirthdays.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/FriendBirthdays.pm	2010-12-02 10:59:58 UTC (rev 17853)
+++ trunk/cgi-bin/LJ/Widget/FriendBirthdays.pm	2010-12-02 11:09:01 UTC (rev 17854)
@@ -44,6 +44,9 @@
         my $day = $bday->[1];
         next unless $u && $month && $day;
 
+        my $wishes = LJ::WishList->load_current($u);
+        my $wish_url = $u->journal_base . "/wishlist";
+
         # remove leading zero on day
         $day =~ s/^0//;
 
@@ -52,6 +55,7 @@
         $ret .= "<td>" . $class->ml('widget.friendbirthdays.userbirthday', {'month' => LJ::Lang::month_short($month), 'day' => $day}) . "</td>";
         $ret .= "<td><a href='$LJ::SITEROOT/shop/view.bml?item=paidaccount&gift=1&for=" . $u->user . "' class='gift-link'>";
         $ret .= $class->ml('widget.friendbirthdays.gift') . "</a></td>";
+        $ret .= "<td>" . (scalar @$wishes ? "<a href='$wish_url'>wishlist img</a>" : "&nbsp;") . "</td>";
         $ret .= "</tr>";
     }
 

Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-12-02 10:59:58 UTC (rev 17853)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-12-02 11:09:01 UTC (rev 17854)
@@ -170,6 +170,8 @@
         }
     }
 
+    $ret{wishlist_url} = $u->journal_base . "/wishlist";
+
     sleep(1.5) if $LJ::IS_DEV_SERVER;
     my %extrainfo = LJ::run_hook("ctxpopup_extra_info", $u);
     %ret = (%ret, %extrainfo);

Tags: bml, livejournal, pm, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments