Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17905: LJSUP-7377: Wishlist

Committer: gariev
LJSUP-7377: Wishlist
1. ML variable ml_view_wishlist is added
2. "View wishlist" URL is present iff user can edit his/her wishlist
3. Communities can't edit/have a wishlist

U   trunk/htdocs/tools/endpoints/ctxpopup.bml
U   trunk/htdocs/tools/endpoints/ctxpopup.bml.text
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-12-12 01:42:32 UTC (rev 17904)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2010-12-13 03:40:36 UTC (rev 17905)
@@ -134,6 +134,7 @@
         report send_gift buy_same_userhead send_message stop_community subscribe_feed
         this_is_you unban unsubscribe_feed updating view watch_community
         your_friend you_member you_subscribed you_watching
+        view_wishlist
     /;
     ## optimization: load all ML strings into local cache at once
     LJ::Lang::get_text_multi(BML::get_language(), undef, [map { "$language_scope.$_" } @ml_keys]);
@@ -170,7 +171,8 @@
         }
     }
 
-    $ret{wishlist_url} = $u->journal_base . "/wishlist";
+    $ret{wishlist_url} = $u->journal_base . "/wishlist"
+        if LJ::WishList->may_edit($u);
 
     sleep(1.5) if $LJ::IS_DEV_SERVER;
     my %extrainfo = LJ::run_hook("ctxpopup_extra_info", $u);

Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml.text
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml.text	2010-12-12 01:42:32 UTC (rev 17904)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml.text	2010-12-13 03:40:36 UTC (rev 17905)
@@ -67,3 +67,4 @@
 
 .you_watching=You are watching [[username]]
 
+.view_wishlist=View wishlist

Tags: bml, gariev, livejournal, text
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