aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-12-31 17:05:16 +0200
committerkongr45gpen <electrovesta@gmail.com>2014-12-31 17:05:16 +0200
commit5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714 (patch)
tree336d92b7fde392f1e7b709bd989eda6909bb3c6d
parentafdb8a96e0b4adb612560ad241f288c7761af73a (diff)
downloadsupybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.tar.gz
supybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.tar.bz2
supybot_github-5edfd84d3f0a1e8ccf8e55bad09cc7da6c315714.zip
Add CompactTheme
-rw-r--r--local/theme/CompactTheme.py14
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
+ ))

© 2014-2024 Faster IT GmbH | imprint | privacy policy