Committer: wisest-owl
LJSUP-11988: implement suspending individual images in the new photo hostingU 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 2012-05-03 12:59:44 UTC (rev 11877) +++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-05-03 14:10:17 UTC (rev 11878) @@ -61,6 +61,7 @@ ## baduser => not exist journals ## readonly => read only ## suspended => suspended journals +## suspended_photo_album => suspended photo or album ## suspended_post => suspended posts ## deleted => deleted journals ## expunged => expunged journals @@ -140,6 +141,23 @@ }; }, + 'suspended_photo_album' => sub { + my %args = @_; + my $journal_username = $args{'journal_username'}; + my $ml_description = LJ::Lang::ml( + '.errorpage.suspended_photo_album.description', + { 'username' => $journal_username }, + ); + + return { + 'frank_img' => '/frank-suspend.png', + 'title' => LJ::Lang::ml('.errorpage.suspended_photo_album.title'), + 'description' => $ml_description, + 'links' => [qw( recent home faq sitemap )], + 'ads_location' => 'error_page.suspended', + }; + }, + 'suspended' => sub { my %args = @_; my $journal_username = $args{'journal_username'}; Modified: trunk/htdocs/error-page.bml.text =================================================================== --- trunk/htdocs/error-page.bml.text 2012-05-03 12:59:44 UTC (rev 11877) +++ trunk/htdocs/error-page.bml.text 2012-05-03 14:10:17 UTC (rev 11878) @@ -121,6 +121,10 @@ .errorpage.suspended_post.description.alien|staleness=1 .errorpage.suspended_post.description.alien=This entry has been suspended and not available for reading. For confidentiality reasons we can not discuss the reasons for which the entry was frozen, with someone else other than the account holder. +.errorpage.suspended_photo_album.description=You cannot view this photo/album because it has been suspended. + +.errorpage.suspended_photo_album.title=Suspended + .errorpage.suspended_post.title|staleness=1 .errorpage.suspended_post.title=Suspended Entry