diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-12-31 17:05:16 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-12-31 17:05:16 +0200 |
commit | 5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714 (patch) | |
tree | 336d92b7fde392f1e7b709bd989eda6909bb3c6d /local | |
parent | afdb8a96e0b4adb612560ad241f288c7761af73a (diff) | |
download | supybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.tar.gz supybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.tar.bz2 supybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.zip |
Add CompactTheme
Diffstat (limited to 'local')
-rw-r--r-- | local/theme/CompactTheme.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/local/theme/CompactTheme.py b/local/theme/CompactTheme.py new file mode 100644 index 0000000..1d52dfe --- /dev/null +++ b/local/theme/CompactTheme.py @@ -0,0 +1,14 @@ +from DefaultTheme import DefaultTheme + +from ..utility import * + +class CompactTheme(DefaultTheme): + def commit(self, branch, repo, author, message, id, url): + self.msgs.append("%s @ %s: %s %s: %s (%s)" % ( + ircutils.bold(ircutils.mircColor(branch, "blue")), + ircutils.bold(repo), + ircutils.mircColor(author, "green"), + ircutils.mircColor(id[0:6], "dark grey"), + maxLen(message, 300), + url + )) |