madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21027: LJSUP-11057: new text variable is used.

Committer: sbelyaev
LJSUP-11057: new text variable is used.
U   trunk/htdocs/update.bml
U   trunk/htdocs/update.bml.text
Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2012-01-27 13:21:10 UTC (rev 21026)
+++ trunk/htdocs/update.bml	2012-01-27 13:49:25 UTC (rev 21027)
@@ -610,8 +610,26 @@
                     } else {
                         $ju = $remote;                             # posting as remote
                     };
-                    $$body .= BML::ml('.update.success2', {'aopts' => "href='" . $ju->journal_base . "/'"});
 
+                    my $juser = $ju->{'user'};
+                    my ($itemid, $anum) = ($res->{'itemid'}, $res->{'anum'});
+                    my $delayedid = $res->{'delayedid'};
+                    if ($res->{'itemid'})
+                    {
+                        $itemlink = LJ::item_link($ju, $itemid, $anum);
+                    }
+                    else
+                    {
+                        $itemlink = LJ::DelayedEntry::item_link($ju, $res->{'delayedid'});
+                    }
+                    
+                    if ($itemid) {
+                        $itemid = $itemid * 256 + $anum;
+                        $$body .= BML::ml('.update.success2', {'aopts' => "href='" . $ju->journal_base . "/'"});
+                    } else {
+                        $$body .= BML::ml('.update.success3', {'aopts' => "href=LJ::SITEROOT/manage/scheduled_posts.bml?usejournal=" . $ju->username});
+                    }
+
                     $$body .= $res->{extra_result_message};
 
                     $$body .= join('<br>', @{$res->{warnings}} ) if $res->{warnings} and @{$res->{warnings}};

Modified: trunk/htdocs/update.bml.text
===================================================================
--- trunk/htdocs/update.bml.text	2012-01-27 13:21:10 UTC (rev 21026)
+++ trunk/htdocs/update.bml.text	2012-01-27 13:49:25 UTC (rev 21027)
@@ -135,6 +135,8 @@
 
 .update.success2=Update successful. You can view your updated journal <a [[aopts]]>here</a>.
 
+.update.success3=Update successful. You can view your scheduled entries <a [[aopts]]>here</a>.
+
 .updating=&nbsp;
 
 .username=Username:

Tags: bml, livejournal, madeon, sbelyaev, 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