[dw-free] circle gifts page: don't show "buy points" message for comms
[commit: http://hg.dwscoalition.org/dw-free/rev/6a8a8e352026]
http://bugs.dwscoalition.org/show_bug.cgi?id=3736
Communities can't own points, so don't show a link to buy points for comms.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3736
Communities can't own points, so don't show a link to buy points for comms.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/shop/gifts.bml
-------------------------------------------------------------------------------- diff -r 50dd0a1c36d4 -r 6a8a8e352026 htdocs/shop/gifts.bml --- a/htdocs/shop/gifts.bml Thu Jun 16 14:30:44 2011 +0800 +++ b/htdocs/shop/gifts.bml Thu Jun 16 14:55:45 2011 +0800 @@ -78,8 +78,12 @@ $ret .= ", " . $person->last_updated if $opts{last_updated}; $ret .= " [<a href='" . $person->gift_url . "'>"; $ret .= LJ::Lang::ml( '.buy.gift' ) . "</a>]"; - $ret .= " [<a href='" . $person->gift_points_url . "'>"; - $ret .= LJ::Lang::ml( '.buy.points' ) . "</a>]"; + + if ( $person->is_personal ) { + $ret .= " [<a href='" . $person->gift_points_url . "'>"; + $ret .= LJ::Lang::ml( '.buy.points' ) . "</a>]"; + } + if ( $person->is_personal && ! $person->equals( $remote ) ) { $ret .= " [<a href='" . $person->transfer_points_url . "'>"; $ret .= LJ::Lang::ml( '.buy.points.transfer' ) . "</a>]"; --------------------------------------------------------------------------------