wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r11237: LJSUP-10505. Allow access to new photoho...

Committer: gprochaev
LJSUP-10505. Allow access to new photohosting for all users

U   trunk/cgi-bin/LJ/Widget/ErrorPage.pm
U   trunk/htdocs/error-page.bml.text
Modified: trunk/cgi-bin/LJ/Widget/ErrorPage.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ErrorPage.pm	2011-12-02 08:02:09 UTC (rev 11236)
+++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm	2011-12-02 08:59:06 UTC (rev 11237)
@@ -211,6 +211,24 @@
         };
     },
 
+    'private_album' => sub {
+        my %args             = @_;
+        my $journal_username = $args{'journal_username'};
+
+        my $ml_description = LJ::Lang::ml(
+            '.errorpage.private_album.description',
+            { 'username' => $journal_username },
+        );
+
+        return {
+            'frank_img'    => '/frank-private.png',
+            'title'        => LJ::Lang::ml('.errorpage.private_album.title'),
+            'description'  => $ml_description,
+            'links'        => [qw( photos home faq sitemap )],
+            'ads_location' => 'error_page.private',
+        };
+    },
+
     'private_photo' => sub {
         my %args             = @_;
         my $journal_username = $args{'journal_username'};

Modified: trunk/htdocs/error-page.bml.text
===================================================================
--- trunk/htdocs/error-page.bml.text	2011-12-02 08:02:09 UTC (rev 11236)
+++ trunk/htdocs/error-page.bml.text	2011-12-02 08:59:06 UTC (rev 11237)
@@ -91,6 +91,10 @@
 .errorpage.private_photo.title|staleness=1
 .errorpage.private_photo.title=Access is closed!
 
+.errorpage.private_album.description=You have no access to this album.
+
+.errorpage.private_album.title=Access is closed!
+
 .errorpage.recent_entries|staleness=1
 .errorpage.recent_entries=<a [[aopts]]>Recent Entries</a> of this journal
 

Tags: gprochaev, ljcom, pm, text, wisest-owl
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