<a><button></button></a> -> <a class="btn"></a>

This commit is contained in:
Élie Bouttier 2014-08-14 19:32:09 -07:00
parent 780aea341b
commit 8a0d8a6514
16 changed files with 43 additions and 43 deletions

View file

@ -16,7 +16,7 @@ from colorful.fields import RGBColorField
import json
from issue.templatetags.issue_tags import same_milestone, same_label, labeled
from issue.templatetags.issue_tags import same_milestone, same_label, label_style, labeled
class User(auth.models.User):
@ -335,8 +335,9 @@ class Event(models.Model):
action = 'added'
else:
action = 'removed'
description = '%s the <a href="%s">%s</a> label' \
% (action, same_label(label), labeled(label))
description = '%s the <a href="%s" class="label" ' \
'style="%s">%s</a> label' \
% (action, same_label(label), label_style(label), label)
elif self.code == Event.SET_MILESTONE or self.code == Event.UNSET_MILESTONE:
milestone = Milestone(name=args['milestone'],
project=self.issue.project)