# HG changeset patch # User souliane # Date 1385409849 -3600 # Node ID bee4719af9b9abfdcd3c028dc8bb40bcd7d85350 # Parent 0eba1c4f9c6fea5c4b6ede617cfb059561c6fa77 browser_side (plugin radiocol): info message when you start the radiocol diff -r 0eba1c4f9c6f -r bee4719af9b9 browser_side/radiocol.py --- a/browser_side/radiocol.py Mon Nov 25 20:39:28 2013 +0100 +++ b/browser_side/radiocol.py Mon Nov 25 21:04:09 2013 +0100 @@ -39,6 +39,7 @@ from jid import JID from tools import html_sanitize from tools import FilterFileUpload +from sat_frontends.tools.misc import DEFAULT_MUC class MetadataPanel(FlexTable): @@ -208,6 +209,14 @@ self.right_panel.add(player) self.addClickListener(self) + help_msg = HTML("""- This radio plays Ogg Vorbis files.
+ - What's that? I only know MP3!
+ - Click here if you need some support :) + """) + help_msg.setStyleName('chatTextInfo-link') + help_msg.addClickListener(lambda: self._parent.host.bridge.call('joinMUC', None, DEFAULT_MUC, self._parent.nick)) + self._parent.content.add(help_msg) + def pushNextSong(self, title): """Add a song to the left panel's next songs queue""" next_song = Label(title) diff -r 0eba1c4f9c6f -r bee4719af9b9 public/libervia.css --- a/public/libervia.css Mon Nov 25 20:39:28 2013 +0100 +++ b/public/libervia.css Mon Nov 25 21:04:09 2013 +0100 @@ -869,10 +869,13 @@ .chatTextInfo { font-weight: bold; + font-style: italic; } -.chatTextInfo { +.chatTextInfo-link { + font-weight: bold; font-style: italic; + cursor: pointer; } .chatArea {