From a810ad5b2e9bc3debffffde58b0aaeadbf6729d6 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 2 Jun 2011 00:28:36 +0200 Subject: A simple widget-info view using syntaxhighlighter. --- src/templates/apps/room/widget.html | 51 +++++++++++++++++++++++++++++++++++++ src/templates/base.html | 10 ++++++++ 2 files changed, 61 insertions(+) create mode 100644 src/templates/apps/room/widget.html (limited to 'src/templates') diff --git a/src/templates/apps/room/widget.html b/src/templates/apps/room/widget.html new file mode 100644 index 0000000..de37e97 --- /dev/null +++ b/src/templates/apps/room/widget.html @@ -0,0 +1,51 @@ +{% extends "base.html" %} +{% load prefix %} +{% block widgets %} + SyntaxHighlighter.all() +{% endblock %} +{% block meta %} + + + + + + + +{% endblock %} +{% block content %} +

{{title}}

+ +
+
+

+ The meetingtools jquery widget allows you to easily embed lists of meetings in your own + web page using the popular jQuery javascript library. +

+
+ +

Copy the sample html below in order to list rooms tagged with {{tags}}.

+ +
+<html>
+   <head>
+      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
+      <script type="text/javascript" src="{% baseurl %}/{% prefix %}js/jquery.meetingtools.js"></script>
+      <link href="{% baseurl %}/{% prefix %}css/jquery.meetingtools.css" rel="stylesheet" type="text/css" />
+      <script type="text/javascript">
+         $(function() {
+            $("#meetings").meetingtools({tags: '{{tags}}',url: '{% baseurl %}/{% prefix %}'});
+         });
+      </script>
+   </head>
+   <body>
+      <h1>Meetings...</h1>
+      <div id="meetings"/>
+   </body>
+</html>
+
+ +

+ 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. +

+{% endblock %} \ No newline at end of file diff --git a/src/templates/base.html b/src/templates/base.html index 61a9b7b..818e137 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -88,6 +88,16 @@
  • SUNET Community Support
  • +
  • + +
  • {% block validators %}{% endblock %} -- cgit v1.1