Part of lp.bugs.browser.bugnomination View In Hierarchy
Method | getNominationPerson | Return the IPerson associated with this nomination. |
Method | getNominationEditLink | Return a link to the nomination edit form. |
Method | getApproveDeclineLinkText | Return a string used for the approve/decline form expander link. |
Method | getNominationDurationSinceCreatedOrDecided | Return a duration since this nomination was created or decided. |
Method | userCanMakeDecisionForNomination | Can the user approve/decline this nomination? |
Method | displayNominationEditLinks | Return true if the Nomination edit links should be shown. |
Return the "decider" (the person who approved or declined the nomination), if there is one, otherwise return the owner.
So if the nomination is currently Proposed, the duration will be from date_created to now, and if the nomination is Approved/Declined, the duration will be from date_decided until now.
This allows us to present a human-readable version of how long ago the nomination was created or approved/declined.