Committer: gprochaev
LJSUP-7834. Profile page of community should display Owner fieldU trunk/htdocs/userinfo.bml U trunk/htdocs/userinfo.bml.text
Modified: trunk/htdocs/userinfo.bml =================================================================== --- trunk/htdocs/userinfo.bml 2011-02-01 03:25:26 UTC (rev 18163) +++ trunk/htdocs/userinfo.bml 2011-02-01 03:41:16 UTC (rev 18164) @@ -1141,14 +1141,15 @@ if ($com) { # get the list of maintainers and moderators (userid only) my $maintainers = LJ::load_rel_user_cache($userid, 'A') || []; + my $super_maintainers = LJ::load_rel_user_cache($userid, 'S') || []; my $moderators = (LJ::load_rel_user_cache($userid, 'M') || []) if $u->{'moderated'}; - if (scalar @$maintainers || ($u->{'moderated'} && scalar @$moderators)) { + if (scalar @$super_maintainers || scalar @$maintainers || ($u->{'moderated'} && scalar @$moderators)) { # now load all the usernames. my %userhash; LJ::load_userids_multiple([ map { $_, \$userhash{$_} } - @$maintainers, @$moderators ]); + @$super_maintainers, @$maintainers, @$moderators ]); my @maintlist = sort { $a->{'user'} cmp $b->{'user'} } map { $userhash{$_} } @$maintainers; @@ -1159,6 +1160,12 @@ $body .= "</div>"; $body .= "<div class='section_body'>"; + if (scalar @$super_maintainers) { + $body .= "<p class='inner_section_header first'><span class='expandcollapse on' id='smaints_header'>" . $arrowimg->("smaints") . + " $ML{'.label.super_maintainers'}:</span></p>"; + $body .= "<div class='inner_section_body' id='smaints_body'>" . $listusers->([map { $userhash{$_} } @$super_maintainers], 'smaint') . "</div>"; + } + $body .= "<p class='inner_section_header first'><span class='expandcollapse on' id='maints_header'>" . $arrowimg->("maints") . " $ML{'.label.maintainers'} (" . scalar @maintlist . "):</span></p>"; Modified: trunk/htdocs/userinfo.bml.text =================================================================== --- trunk/htdocs/userinfo.bml.text 2011-02-01 03:25:26 UTC (rev 18163) +++ trunk/htdocs/userinfo.bml.text 2011-02-01 03:41:16 UTC (rev 18164) @@ -364,6 +364,8 @@ .label.maintainers=Maintainers +.label.super_maintainers=Owner + .label.manageschools=Manage Schools .label.memberof=Member of