changeset 284:bee4719af9b9

browser_side (plugin radiocol): info message when you start the radiocol
author souliane <souliane@mailoo.org>
date Mon, 25 Nov 2013 21:04:09 +0100
parents 0eba1c4f9c6f
children 4f0c2fea358a
files browser_side/radiocol.py public/libervia.css
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.<br />
+        - What's that? I only know MP3!<br />
+        - Click <a style="color: red;">here</a> 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)
--- 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 {