juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10041: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/htdocs/community/account.bml
U   trunk/htdocs/community/account.bml.text.local
Modified: trunk/htdocs/community/account.bml
===================================================================
--- trunk/htdocs/community/account.bml	2011-02-15 08:37:19 UTC (rev 10040)
+++ trunk/htdocs/community/account.bml	2011-02-15 10:13:36 UTC (rev 10041)
@@ -93,11 +93,14 @@
             </form>
         };
 
-        # If Plus account
+        # If Try&Buy account
         if(LJ::TryNBuy->active($u)) {
-            $body .= "hui VAM!!!1";
+            $body .= BML::ml('.title.days.left', {
+            'num' => LJ::TryNBuy->days_left($u),
+        }); }
+ 
         # Free without ads
-        } elsif ($u->in_class("plus")) {
+        if ($u->in_class("plus")) {
             $body .= "<table cellpadding='0' cellspacing='0' border='0'>";
             $body .= "<tr><td valign='top' width='50%' style='padding-right: 10px'>";
             if ($POST{areyousure}) {

Modified: trunk/htdocs/community/account.bml.text.local
===================================================================
--- trunk/htdocs/community/account.bml.text.local	2011-02-15 08:37:19 UTC (rev 10040)
+++ trunk/htdocs/community/account.bml.text.local	2011-02-15 10:13:36 UTC (rev 10041)
@@ -52,3 +52,4 @@
 
 .title=Community Account Status
 
+.title.days.left=Try and Buy period for this journal expires in [[num]] [[?num|day|days]].

Tags: bml, juks, ljcom, local
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