Hi Salgado, Can you do a followup review on the changes I made for Martin? BTW, it is understood that the changes to the see-all css also affect the project page and any other portlets. -Edwin {{{ === modified file 'lib/canonical/launchpad/icing/style-3-0.css' --- lib/canonical/launchpad/icing/style-3-0.css 2009-08-23 01:55:48 +0000 +++ lib/canonical/launchpad/icing/style-3-0.css 2009-08-28 02:04:01 +0000 @@ -369,9 +369,8 @@ } .see-all a { padding-left: 8px; - background: url(/@@/link-grey-arrow.png) left center no-repeat; + background: inherit; font-size: 72%; - color: #484848; text-decoration: underline; } .rss-right { @@ -576,6 +575,30 @@ text-align: right; } +ul.super-add-action { + margin: 0 auto 1em; +} + +ul.super-add-action li { + padding: 0; +} + +ul.super-add-action li a { + display: block; + border: 1px solid black; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + -khtml-border-radius: 3px; + background: #4f843c url(/@@/bg-action-add) center left no-repeat; + border-radius: 3px; + padding: 6%; + padding-left: 45px; + color: #fff; + font-size: 108%; + font-weight: bold; + text-decoration: underline; + } + .involvement ul { border-top: 1px solid #d0d0d0; } === added file 'lib/canonical/launchpad/images/bg-action-add.png' Binary files lib/canonical/launchpad/images/bg-action-add.png 1970-01-01 00:00:00 +0000 and lib/canonical/launchpad/images/bg-action-add.png 2009-08-26 19:07:10 +0000 differ === modified file 'lib/lp/registry/browser/person.py' --- lib/lp/registry/browser/person.py 2009-08-24 19:14:38 +0000 +++ lib/lp/registry/browser/person.py 2009-08-27 22:12:31 +0000 @@ -877,7 +877,8 @@ def maintained(self): target = '+maintained-packages' text = 'Maintained Packages' - return Link(target, text, icon='info') + enabled = bool(self.team.getLatestMaintainedPackages()) + return Link(target, text, enabled=enabled, icon='info') def uploaded(self): target = '+uploaded-packages' @@ -1078,7 +1079,7 @@ return Link(target, text) -class PersonRelatedSoftwareNavigationMenu(NavigationMenu): +class PersonRelatedSoftwareNavigationMenu(NavigationMenu, CommonMenuLinks): usedfor = IPersonRelatedSoftwareMenu facet = 'overview' @@ -1226,7 +1227,7 @@ @enabled_with_permission('launchpad.Edit') def editemail(self): target = '+contactaddress' - text = 'Change contact address' + text = 'Set contact address' summary = ( 'The address Launchpad uses to contact %s' % self.team.displayname) @@ -1235,10 +1236,16 @@ @enabled_with_permission('launchpad.MailingListManager') def configure_mailing_list(self): target = '+mailinglist' - text = 'Configure mailing list' + mailing_list = self.team.mailing_list + if mailing_list is not None and mailing_list.is_usable: + text = 'Configure mailing list' + icon = 'edit' + else: + text = 'Create a mailing list' + icon = 'add' summary = ( 'The mailing list associated with %s' % self.context.displayname) - return Link(target, text, summary, icon='edit') + return Link(target, text, summary, icon=icon) @enabled_with_active_mailing_list @enabled_with_permission('launchpad.Edit') @@ -1255,23 +1262,28 @@ text = 'Set preferred languages' return Link(target, text, icon='edit') - def joinleave(self): + def leave(self): + enabled = True + if not userIsActiveTeamMember(self.team): + enabled = False + if self.team.teamowner == self.user: + # The owner cannot leave his team. + enabled = False + target = '+leave' + text = 'Leave the Team' + icon = 'remove' + return Link(target, text, icon=icon, enabled=enabled) + + def join(self): enabled = True if userIsActiveTeamMember(self.team): - if self.team.teamowner == self.user: - # The owner cannot leave his team - enabled = False - target = '+leave' - text = 'Leave the Team' # … - icon = 'remove' - else: - if (self.team.subscriptionpolicy - == TeamSubscriptionPolicy.RESTRICTED): - # This is a restricted team; users can't join. - enabled = False - target = '+join' - text = 'Join the team' # … - icon = 'add' + enabled = False + if self.team.subscriptionpolicy == TeamSubscriptionPolicy.RESTRICTED: + # This is a restricted team; users can't join. + enabled = False + target = '+join' + text = 'Join the team' + icon = 'add' return Link(target, text, icon=icon, enabled=enabled) @@ -1284,7 +1296,7 @@ 'memberships', 'received_invitations', 'editemail', 'configure_mailing_list', 'moderate_mailing_list', 'editlanguages', 'map', 'polls', - 'add_poll', 'joinleave', 'add_my_teams', 'mentorships', + 'add_poll', 'join', 'leave', 'add_my_teams', 'mentorships', 'reassign', 'related_projects', 'activate_ppa', 'maintained'] @@ -5530,7 +5542,7 @@ usedfor = ITeamIndexMenu facet = 'overview' title = 'Change team' - links = ('edit', 'joinleave', 'add_member', 'add_my_teams') + links = ('edit', 'add_member', 'add_my_teams', 'leave') class TeamEditMenu(TeamNavigationMenuBase): === modified file 'lib/lp/registry/templates/person-macros.pt' --- lib/lp/registry/templates/person-macros.pt 2009-08-22 16:51:26 +0000 +++ lib/lp/registry/templates/person-macros.pt 2009-08-27 21:43:57 +0000 @@ -35,9 +35,12 @@
- + @@ -75,7 +78,9 @@@@ -95,13 +100,14 @@ -
-
-
- Show all
- |
-
- This team has no open polls nor polls that are not yet opened. + No polls created.
+ + + View map and time zones + + Location +- |
@@ -69,9 +72,14 @@
@@ -102,15 +110,11 @@
-
- Recently applied
+ Pending approval