emails: added new tags to status sent

- make this distinct colored tags for quick status catch
- pass in the status type together with label to the notifiactions and templates
- fixed some UI issues on emails
This commit is contained in:
Marcin Kuzminski 2016-08-03 15:21:38 +02:00
parent 3b24829209
commit 1b62606fc2
10 changed files with 92 additions and 28 deletions

View file

@ -351,7 +351,8 @@ class ChangesetController(BaseRepoController):
f_path=request.POST.get('f_path'),
line_no=request.POST.get('line'),
status_change=(ChangesetStatus.get_status_lbl(status)
if status else None)
if status else None),
status_change_type=status
)
# get status if set !
if status:

View file

@ -762,6 +762,8 @@ class PullrequestsController(BaseRepoController):
line_no=request.POST.get('line'),
status_change=(ChangesetStatus.get_status_lbl(status)
if status and allowed_to_change_status else None),
status_change_type=(status
if status and allowed_to_change_status else None),
closing_pr=close_pr
)