PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/index.html

http://django-jchat.googlecode.com/
HTML | 32 lines | 29 code | 3 blank | 0 comment | 0 complexity | f36e1d30d0cf29268a75f6be38253018 MD5 | raw file
 1{% extends 'base.html' %}
 2
 3{% block content %}
 4
 5<div id="instructions"> 
 6  <p>Ok, to get things started you could read some of the info on how this works on the post I made in my blog here: <a href="http://pythonhaven.wordpress.com/2009/07/13/django-powered-ajax-chat-%e2%80%93-part-2/" target="_blank">Django AJAX Powered chat Part 2 @ PythonHaven</a>, or visit the wiki section of the <a href="http://code.google.com/p/django-jchat/" target="_blank">project's homepage</a> (whenever it is updated)...</p> 
 7</div> 
 8<div id="explanation"> 
 9  <p> 
10    The following links expose the two ways that django-jchat can be used in your site.
11    <ol>
12    	<li>The first mode (AKA "standalone" mode) the chat room is instanced and exists by itself, unattached to anything else in your project. This can be useful if you want to create a "global chat" application for your site, or simply chat rooms that exist by themselves.</li>
13    	<li>The second mode (AKA "the power of generic relations" mode) the chat room is binded to an instance of <strong><em>any</em></strong> model in your site, allowing you to create chat rooms for forum topics, user groups, user-user conversations, etc.</li>
14    </ol>
15  </p> 
16</div>
17<div id="example1">
18	<h3>Standalone</h3>
19	<p>This example leads you to a page where the chat room instance exists by itself, it is not bound to any other models in the project.</p>
20	<p>Go to <a href="/simple">simple (standalone)</a> demo.</p>
21</div>
22<div id="example2">
23	<h3>Complex</h3>
24	<p>For this example the database has been populated with dummy instances of a "document" model. The use case I'm covering with this example is that of a site like Google Docs, where you can edit documents and chat with the people editing the document at the same time (it's the only example I could think of, sorry). So, by binding the chatroom instances to each document I can have a separate chat room for each document so that contributors can collaborate in a more Web 2.0'esque way :D.</p>
25	<ul>
26	{% for doc in documents %}
27		<li>Go to <a href="/complex/{{ doc.id }}">{{ doc.title }}</a> document</li>
28	{% endfor %}
29	</ul>
30</div>
31
32{% endblock %}