Committer: vtroitsky
LJSUP-11190: Placeholder message for identity users on Journal Selfpromo Tab added. Language variables renamed.U trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm U trunk/htdocs/shop/selfpromo.bml.text.local
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm 2012-02-08 14:06:22 UTC (rev 11433) +++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm 2012-02-08 14:41:06 UTC (rev 11434) @@ -98,7 +98,10 @@ 'form_disabled' => !$remote ? 1 : 0, }; - $elem->{'ljuser'} = $remote->ljuser_display() if $remote && $type eq 'journal'; + if ($remote && $type eq 'journal') { + $elem->{'ljuser'} = $remote->ljuser_display(); + $elem->{'is_identity'} = $remote->is_identity; + } $elem->{'communities'} = [ map { {'user' => $_ } } grep { $_ ne $remote->{'user'} } LJ::get_authas_list($remote, {type => 'C'}) ] if $remote && $type eq 'community'; push @{$result->{$type}}, $elem; } Modified: trunk/htdocs/shop/selfpromo.bml.text.local =================================================================== --- trunk/htdocs/shop/selfpromo.bml.text.local 2012-02-08 14:06:22 UTC (rev 11433) +++ trunk/htdocs/shop/selfpromo.bml.text.local 2012-02-08 14:41:06 UTC (rev 11434) @@ -130,11 +130,10 @@ .label.entry_link=Link to your post: -.label.journal_link=Promote your journal: +.label.journal_link=Promote yourself: -.label.community_link=Select your community: +.label.community_link=Promote your community: -.label.no_communities=No communitites to promote .label.price|staleness=1 .label.price=Your price: @@ -142,10 +141,14 @@ .placeholder.object_link|staleness=1 .placeholder.object_link=Paste your URL here -.placeholder.journal= Please <a href="/login.bml">login</a> in or <a href="/create.bml">sign up</a> to promote your journal +.placeholder.journal.anonymous=Please <a href="/login.bml">login</a> in or <a href="/create.bml">sign up</a> to promote your journal -.placeholder.community= Please <a href="/login.bml">login</a> in or <a href="/create.bml">sign up</a> to promote your community +.placeholder.journal.identity=This service is available only for registered LiveJournal users. Please <a href="http://www.livejournal.com/support/faqbrowse.bml?faqid=314">convert your account</a> or <a href="/create.bml">create a new LiveJournal account</a>. +.placeholder.community.anonymous=Please <a href="/login.bml">login</a> in or <a href="/create.bml">sign up</a> to promote your community + +.placeholder.community.none=No communitites to promote + .placeholder.price|staleness=1 .placeholder.price=LJ Tokens