Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20977: LJSUP-10060: Don't must be ability to up...

Committer: mchervonniy
LJSUP-10060: Don't must be ability to upload photos for Basic accounts
U   trunk/bin/upgrading/en.dat
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/bin/upgrading/en.dat
===================================================================
--- trunk/bin/upgrading/en.dat	2012-01-24 12:59:31 UTC (rev 20976)
+++ trunk/bin/upgrading/en.dat	2012-01-24 15:12:36 UTC (rev 20977)
@@ -3335,6 +3335,10 @@
 
 fotki.beta.title=Welcome to the Albums beta!
 
+fotki.error.upgrade.title=Uploading pictures does not available
+fotki.error.upgrade.description=Your current account status does not allow you to upload pictures.
+fotki.error.upgrade.link=Upgrade your account
+
 gender.female|staleness=1
 gender.female=Female
 

Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-24 12:59:31 UTC (rev 20976)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-01-24 15:12:36 UTC (rev 20977)
@@ -1799,6 +1799,27 @@
         }
         $$js .= 'initEntryDate();';
         my $ljphoto_enabled = $remote ? $remote->can_upload_photo() : 0;
+        unless ($ljphoto_enabled) {
+            $out .= <<DISABLE_HTML;
+
+<div class="b-popup b-popup-pics" id="pics-error-upgrade" style="display: none;">
+    <div class="b-popup-outer">
+        <div class="b-popup-inner">
+            <div class="popup-inner">
+                <div class="b-popup-state-container b-popup-pics-upload b-popup-pics-upload-error">
+                    <h2 class="b-popup-pics-upload-header"><tmpl_var expr="ml('fotki.error.upgrade.title')"></h2>
+                    <p class="i-bubble b-bubble-lite b-bubble-noarrow"><tmpl_var expr="ml('fotki.error.upgrade.description')"></p>
+                    <p><a href="/manage/account/"><tmpl_var expr="ml('fotki.error.upgrade.link')"></a></p>
+                    <i class="i-popup-close"></i>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+DISABLE_HTML
+
+        }
         $$js .= "window.ljphotoEnabled = $ljphoto_enabled;";
         $$js = $self->wrap_js($$js);
 

Tags: dat, fiskus_boulder, livejournal, mchervonniy, pm
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 

  • 1 comment