Alan Bell has proposed merging lp:~alanbell/loco-directory/embeddedwebchat into 
lp:loco-directory.

Requested reviews:
  loco-directory-dev (loco-directory-dev)


changed the webchat to be in an iframe on the loco detail page
-- 
https://code.launchpad.net/~alanbell/loco-directory/embeddedwebchat/+merge/37593
Your team loco-directory-dev is requested to review the proposed merge of 
lp:~alanbell/loco-directory/embeddedwebchat into lp:loco-directory.
=== modified file 'loco_directory/templates/teams/team_detail.html'
--- loco_directory/templates/teams/team_detail.html	2010-09-26 21:27:20 +0000
+++ loco_directory/templates/teams/team_detail.html	2010-10-05 12:42:06 +0000
@@ -182,7 +182,7 @@
                     <a href="{{ team.wiki_url }}"><img class="resource" src="/media/images/team/wiki.png" alt="{% trans "Team Wiki" %}" title="{% trans "Team Wiki" %}" /></a>
                 {% endif %}
                 {% if team.irc_chan %}
-                    <a href="http://webchat.freenode.net/?channels={{ team.irc_chan }}"><img class="resource" src="/media/images/team/irc.png" alt="{% trans "IRC Channel" %} ({{ team.irc_chan }})" title="{% trans "IRC Channel" %} ({{ team.irc_chan }})" /></a>
+                    <img class="resource" style="cursor:pointer;" src="/media/images/team/irc.png" onclick="$('#webchat').show('slow');" alt="{% trans "IRC Channel" %} ({{ team.irc_chan }})" title="{% trans "IRC Channel" %} ({{ team.irc_chan }})" />
                 {% endif %}
                 {% if team.ml_url %}
                     <a href="{{ team.ml_url }}"><img class="resource" src="/media/images/team/list.png" alt="{% trans "Team Mailing List" %}" title="{% trans "Team Mailing List" %}" /></a>
@@ -235,3 +235,11 @@
 {% endif %}
 
 {% endblock %}
+{% block general %}
+{% if team.irc_chan %}
+<div id="webchat" style="display:none;">
+    <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218" width="900" height="400"></iframe>
+</div>
+{% endif %}
+{% endblock %}
+

_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to