A bit of HipChat cleanup

This commit is contained in:
JonnyWong16 2016-07-08 19:38:17 -07:00
parent d74cd4bf24
commit 2d26ced3fc

View file

@ -2813,7 +2813,7 @@ class HIPCHAT(object):
config_option = [{'label': 'Hipchat Custom Integrations Full URL', config_option = [{'label': 'Hipchat Custom Integrations Full URL',
'value': self.apiurl, 'value': self.apiurl,
'name': 'hipchat_url', 'name': 'hipchat_url',
'description': 'Your Hipchat integration URL. You can get a key from' 'description': 'Your Hipchat BYO integration URL. You can get a key from'
' <a href="' + helpers.anon_url('https://www.hipchat.com/addons/') + '" target="_blank">here</a>.', ' <a href="' + helpers.anon_url('https://www.hipchat.com/addons/') + '" target="_blank">here</a>.',
'input_type': 'text' 'input_type': 'text'
}, },
@ -2822,12 +2822,19 @@ class HIPCHAT(object):
'name': 'hipchat_color', 'name': 'hipchat_color',
'description': 'Background color for the message.', 'description': 'Background color for the message.',
'input_type': 'select', 'input_type': 'select',
'select_options': {'yellow': 'yellow', 'green': 'green', 'red': 'red', 'purple': 'purple', 'gray': 'gray', 'random': 'random'} 'select_options': {'': '',
'gray': 'gray',
'green': 'green',
'purple': 'purple',
'random': 'random',
'red': 'red',
'yellow': 'yellow'
}
}, },
{'label': 'Hipchat emoticon', {'label': 'Hipchat Emoticon',
'value': self.emoticon, 'value': self.emoticon,
'name': 'hipchat_emoticon', 'name': 'hipchat_emoticon',
'description': 'Include an emoticon tag at the beginning of all notifications. Leave blank for none.' 'description': 'Include an emoticon tag at the beginning of all notifications (e.g. (taco)). Leave blank for none.'
' Use a stock emoticon or create a custom emoticon' ' Use a stock emoticon or create a custom emoticon'
' <a href="' + helpers.anon_url('https://www.hipchat.com/emoticons/') + '" target="_blank">here</a>.', ' <a href="' + helpers.anon_url('https://www.hipchat.com/emoticons/') + '" target="_blank">here</a>.',
'input_type': 'text' 'input_type': 'text'