Delimit added/removed/modified with "/" and boldify them
This commit is contained in:
parent
4716ad16b9
commit
7275408b35
1 changed files with 7 additions and 1 deletions
|
@ -80,12 +80,18 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
added = utils.irc.color("+%d" % len(commit["added"]),
|
||||
utils.irc.COLOR_GREEN)
|
||||
added = utils.irc.bold(added)
|
||||
|
||||
removed = utils.irc.color("-%d" % len(commit["removed"]),
|
||||
utils.irc.COLOR_RED)
|
||||
removed = utils.irc.bold(removed)
|
||||
|
||||
modified = utils.irc.color("±%d" % len(commit["modified"]),
|
||||
utils.irc.COLOR_PURPLE)
|
||||
modified = utils.irc.bold(modified)
|
||||
utils.irc.COLOR_PURPLE)
|
||||
|
||||
outputs.append("(%s) [files: %s%s%s] commit by '%s': %s - %s"
|
||||
outputs.append("(%s) [files: %s/%s/%s] commit by '%s': %s - %s"
|
||||
% (full_name, added, removed, modified, author, message, url))
|
||||
return outputs
|
||||
|
||||
|
|
Loading…
Reference in a new issue