Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTransaction.php
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
case self::TYPE_DESCRIPTION: | case self::TYPE_DESCRIPTION: | ||||
return pht('Edited'); | return pht('Edited'); | ||||
case self::TYPE_OWNER: | case self::TYPE_OWNER: | ||||
if ($this->getAuthorPHID() == $new) { | if ($this->getAuthorPHID() == $new) { | ||||
return pht('Claimed'); | return pht('Claimed'); | ||||
} else if (!$new) { | } else if (!$new) { | ||||
return pht('Up For Grabs'); | return pht('Unassigned'); | ||||
} else if (!$old) { | } else if (!$old) { | ||||
return pht('Assigned'); | return pht('Assigned'); | ||||
} else { | } else { | ||||
return pht('Reassigned'); | return pht('Reassigned'); | ||||
} | } | ||||
case self::TYPE_PROJECT_COLUMN: | case self::TYPE_PROJECT_COLUMN: | ||||
return pht('Changed Project Column'); | return pht('Changed Project Column'); | ||||
▲ Show 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
case self::TYPE_OWNER: | case self::TYPE_OWNER: | ||||
if ($author_phid == $new) { | if ($author_phid == $new) { | ||||
return pht( | return pht( | ||||
'%s claimed this task.', | '%s claimed this task.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
} else if (!$new) { | } else if (!$new) { | ||||
return pht( | return pht( | ||||
'%s placed this task up for grabs.', | '%s removed %s as the assignee of this task.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($old)); | |||||
} else if (!$old) { | } else if (!$old) { | ||||
return pht( | return pht( | ||||
'%s assigned this task to %s.', | '%s assigned this task to %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($new)); | $this->renderHandleLink($new)); | ||||
} else { | } else { | ||||
return pht( | return pht( | ||||
'%s reassigned this task from %s to %s.', | '%s reassigned this task from %s to %s.', | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |