summaryrefslogtreecommitdiff
path: root/templates/apps/room/widget.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-04 15:39:08 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-04 15:39:08 +0200
commit2bdad0ae7a3a6e4ec5116becd39910388b679ed2 (patch)
tree5afdfba0a93c1af50d53bdc245d57cc4053e109a /templates/apps/room/widget.html
parent873e7823970352d591deee5f67f47c5436ee0e84 (diff)
restructure
Diffstat (limited to 'templates/apps/room/widget.html')
-rw-r--r--templates/apps/room/widget.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/apps/room/widget.html b/templates/apps/room/widget.html
new file mode 100644
index 0000000..a658a17
--- /dev/null
+++ b/templates/apps/room/widget.html
@@ -0,0 +1,41 @@
+{% extends "base.html" %}
+{% block content %}
+<div class="page-header">
+ <h1>{{title}}</h1>
+</div>
+
+<div class="alert">
+ <i class="icon-info-sign"></i>
+ The meetingtools jquery widget allows you to easily embed lists of meetings in your own
+ web page using the popular <a href="http://jquery.com">jQuery javascript library</a>.
+</div>
+
+<p>Copy the sample html below in order to list rooms tagged with <em>{{tags}}</em>.</p>
+
+<pre class="pre-scrollable prettyprint linenums language-xml">
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;script type="text/javascript"
+ src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
+ &lt;script type="text/javascript"
+ src="{% baseurl %}/site-media/js/jquery.meetingtools.js"&gt;&lt;/script&gt;
+ &lt;link href="{% baseurl %}/site-media/css/jquery.meetingtools.css"
+ rel="stylesheet" type="text/css" /&gt;
+ &lt;script type="text/javascript"&gt;
+ $(function() {
+ $("#meetings").meetingtools({tags: '{{tags}}',url: '{% baseurl %}'});
+ });
+ &lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Meetings...&lt;/h1&gt;
+ &lt;div id="meetings"&gt;&lt;img src="{% baseurl %}/site-media/img/ajax-loader.gif"/&gt;&lt;/div&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+<p>
+ Change the tags option in the call to 'meetingtools' in order to list other rooms. Override
+ the CSS elements in jquery.meetingtools.css in order to apply your own skin to the generated html.
+</p>
+{% endblock %} \ No newline at end of file