Mercurial > kallithea
diff rhodecode/model/notification.py @ 2443:fd0a822481ec codereview
- added commenting to pull requests
- it's now possible to change pull request status via changeset status option
- status flags with associated pull requests are links to pull request they been
changed in
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 11 Jun 2012 00:58:24 +0200 |
parents | f29469677319 |
children | 4753a3445ff7 |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Sun Jun 10 23:18:27 2012 +0200 +++ b/rhodecode/model/notification.py Mon Jun 11 00:58:24 2012 +0200 @@ -198,13 +198,15 @@ Creates a human readable description based on properties of notification object """ - + #alias + _n = notification _map = { - notification.TYPE_CHANGESET_COMMENT: _('commented on commit'), - notification.TYPE_MESSAGE: _('sent message'), - notification.TYPE_MENTION: _('mentioned you'), - notification.TYPE_REGISTRATION: _('registered in RhodeCode'), - notification.TYPE_PULL_REQUEST: _('opened new pull request') + _n.TYPE_CHANGESET_COMMENT: _('commented on commit'), + _n.TYPE_MESSAGE: _('sent message'), + _n.TYPE_MENTION: _('mentioned you'), + _n.TYPE_REGISTRATION: _('registered in RhodeCode'), + _n.TYPE_PULL_REQUEST: _('opened new pull request'), + _n.TYPE_PULL_REQUEST_COMMENT: _('commented on pull request') } tmpl = "%(user)s %(action)s %(when)s"