Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #73 -- Added djangoproject.com templates to subversion. Now the…

…y're publicly available so people can learn from them.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e1d5ba5dbb8bd21e3d5b2c7eb70b73655eb36999 1 parent 64589db
authored July 19, 2005

Showing 52 changed files with 3,066 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  django_website/templates/404.html
  2. 15  django_website/templates/500.html
  3. 55  django_website/templates/base.html
  4. 14  django_website/templates/base_2col.html
  5. 19  django_website/templates/base_3col.html
  6. 7  django_website/templates/base_code.html
  7. 7  django_website/templates/base_community.html
  8. 7  django_website/templates/base_docs.html
  9. 7  django_website/templates/base_download.html
  10. 7  django_website/templates/base_overview.html
  11. 24  django_website/templates/base_weblog.html
  12. 14  django_website/templates/blog/entries_archive.html
  13. 16  django_website/templates/blog/entries_archive_day.html
  14. 16  django_website/templates/blog/entries_archive_month.html
  15. 15  django_website/templates/blog/entries_archive_year.html
  16. 28  django_website/templates/blog/entries_detail.html
  17. 45  django_website/templates/comments/free_preview.html
  18. 17  django_website/templates/comments/posted.html
  19. 30  django_website/templates/docs/documents_detail.html
  20. 7  django_website/templates/flatfiles/code.html
  21. 7  django_website/templates/flatfiles/community.html
  22. 7  django_website/templates/flatfiles/default.html
  23. 58  django_website/templates/flatfiles/docs.html
  24. 7  django_website/templates/flatfiles/download.html
  25. 78  django_website/templates/flatfiles/homepage.html
  26. 7  django_website/templates/flatfiles/overview.html
  27. 1  django_website/templates/rss/weblog_description.html
  28. 1  django_website/templates/rss/weblog_title.html
  29. 5  django_website/templates/trac_templates/README
  30. 40  django_website/templates/trac_templates/attachment.cs
  31. 94  django_website/templates/trac_templates/browser.cs
  32. 175  django_website/templates/trac_templates/changeset.cs
  33. 54  django_website/templates/trac_templates/error.cs
  34. 70  django_website/templates/trac_templates/file.cs
  35. 47  django_website/templates/trac_templates/footer.cs
  36. 109  django_website/templates/trac_templates/header.cs
  37. 53  django_website/templates/trac_templates/log.cs
  38. 31  django_website/templates/trac_templates/log_rss.cs
  39. 207  django_website/templates/trac_templates/macros.cs
  40. 177  django_website/templates/trac_templates/milestone.cs
  41. 84  django_website/templates/trac_templates/newticket.cs
  42. 162  django_website/templates/trac_templates/query.cs
  43. 237  django_website/templates/trac_templates/report.cs
  44. 51  django_website/templates/trac_templates/report_rss.cs
  45. 53  django_website/templates/trac_templates/roadmap.cs
  46. 116  django_website/templates/trac_templates/search.cs
  47. 70  django_website/templates/trac_templates/settings.cs
  48. 270  django_website/templates/trac_templates/ticket.cs
  49. 23  django_website/templates/trac_templates/ticket_notify_email.cs
  50. 98  django_website/templates/trac_templates/timeline.cs
  51. 65  django_website/templates/trac_templates/timeline_rss.cs
  52. 248  django_website/templates/trac_templates/wiki.cs
11  django_website/templates/404.html
... ...
@@ -0,0 +1,11 @@
  1
+{% extends "base_2col" %}
  2
+
  3
+{% block title %}Page not found{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h2>Page not found</h2>
  8
+
  9
+<p>We're sorry, but the requested page could not be found.</p>
  10
+
  11
+{% endblock %}
15  django_website/templates/500.html
... ...
@@ -0,0 +1,15 @@
  1
+{% extends "base_2col" %}
  2
+
  3
+{% block title %}Page unavailable{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h2>Page unavailable</h2>
  8
+
  9
+<p>We're sorry, but the requested page is currently unavailable.</p>
  10
+
  11
+<p>We're messing around with things internally, and the server had a bit of a hiccup.</p>
  12
+
  13
+<p>Please try again later.</p>
  14
+
  15
+{% endblock %}
55  django_website/templates/base.html
... ...
@@ -0,0 +1,55 @@
  1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2
+	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4
+	<head>
  5
+		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  6
+		<meta http-equiv="Content-Language" content="en-us" />
  7
+
  8
+		<title>Django | {% block title %}The Web framework for perfectionists with deadlines{% endblock %}</title>
  9
+
  10
+		<meta name="ROBOTS" content="ALL" />
  11
+		<meta http-equiv="imagetoolbar" content="no" />
  12
+		<meta name="MSSmartTagsPreventParsing" content="true" />
  13
+		<meta name="Copyright" content="This site's design and contents Copyright (c) 2005  World Online." />
  14
+		<!-- (c) Copyright 2005 World Online All Rights Reserved. -->
  15
+
  16
+		<meta name="keywords" content="Python, Django, framework, open-source" />
  17
+		<meta name="description" content="Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design." />
  18
+
  19
+		<link href="http://media.djangoproject.com/css/base.css" rel="stylesheet" type="text/css" media="all" />
  20
+        {% block extrahead %}{% endblock %}
  21
+	</head>
  22
+
  23
+	<body id="{% block sectionid %}generic{% endblock %}">
  24
+
  25
+	<div id="container">
  26
+		<div id="header">
  27
+			<h1 id="logo"><a href="/"><img src="http://media.djangoproject.com/img/site/hdr_logo.gif" alt="Django" /></a></h1>
  28
+			<ul id="nav-global">
  29
+				<li id="nav-homepage"><a href="/">Home</a></li>
  30
+				<li id="nav-download"><a href="/download/">Download</a></li>
  31
+				<li id="nav-documentation"><a href="/documentation/">Documentation</a></li>
  32
+				<li id="nav-weblog"><a href="/weblog/">Weblog</a></li>
  33
+				<li id="nav-community"><a href="/community/">Community</a></li>
  34
+				<li id="nav-code"><a href="http://code.djangoproject.com/">Code</a></li>
  35
+			</ul>
  36
+		</div>
  37
+		<!-- END Header -->
  38
+		<div id="billboard">{% block billboard %}{% endblock %}</div>
  39
+		<div id="columnwrap">
  40
+			{% block columnwrap %}
  41
+				<div id="content-main">
  42
+				{% block content %}{% endblock %}
  43
+				</div>
  44
+				<!-- END #content-main -->
  45
+			{% endblock %}
  46
+		</div>
  47
+		<!-- END #content -->
  48
+		<div id="footer">
  49
+			<p>This site's design and contents Copyright &copy; 2005 Lawrence Journal-World unless otherwise noted.</p>
  50
+		</div>
  51
+	</div>
  52
+	<!-- END #container -->
  53
+	</body>
  54
+</html>
  55
+
14  django_website/templates/base_2col.html
... ...
@@ -0,0 +1,14 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block columnwrap %}
  4
+		<div id="content-main">
  5
+		{% block content %}
  6
+		{% endblock %}
  7
+		</div>
  8
+		<!-- END #content-main -->
  9
+		<div id="content-related" class="sidebar">
  10
+		{% block content-related %}
  11
+		{% endblock %}
  12
+		</div>
  13
+		<!-- END #content-related -->
  14
+{% endblock %}
19  django_website/templates/base_3col.html
... ...
@@ -0,0 +1,19 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block columnwrap %}
  4
+	<div id="subwrap">
  5
+		<div id="content-main">
  6
+		{% block content %}{% endblock %}
  7
+		</div>
  8
+		<!-- END #content-main -->
  9
+		<div id="content-related" class="sidebar">
  10
+		{% block content-related %}{% endblock %}
  11
+		</div>
  12
+		<!-- END #content-related -->
  13
+	</div>
  14
+	<!-- END #subwrap -->
  15
+	<div id="content-extra" class="sidebar">
  16
+	{% block content-extra %}{% endblock %}
  17
+	</div>
  18
+	<!-- END #content-extra -->
  19
+{% endblock %}
7  django_website/templates/base_code.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_2col" %}
  2
+
  3
+{% block sectionid %}code{% endblock %}
  4
+
  5
+{% block title %}Code{% endblock %}
  6
+
  7
+{% block billboard %}<h2><a href="http://code.djangoproject.com/"><img src="http://media.djangoproject.com/img/site/bbd_code.gif" alt="Django source code" /></a></h2>{% endblock %}
7  django_website/templates/base_community.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block sectionid %}community{% endblock %}
  4
+
  5
+{% block title %}Community{% endblock %}
  6
+
  7
+{% block billboard %}<h2>Community</h2>{% endblock %}
7  django_website/templates/base_docs.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_2col" %}
  2
+
  3
+{% block sectionid %}documentation{% endblock %}
  4
+
  5
+{% block title %}Documentation{% endblock %}
  6
+
  7
+{% block billboard %}<h2><a href="/documentation/">Django documentation</a></h2>{% endblock %}
7  django_website/templates/base_download.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block sectionid %}download{% endblock %}
  4
+
  5
+{% block title %}Download{% endblock %}
  6
+
  7
+{% block billboard %}<h2>Download</h2>{% endblock %}
7  django_website/templates/base_overview.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block sectionid %}overview{% endblock %}
  4
+
  5
+{% block title %}Overview{% endblock %}
  6
+
  7
+{% block billboard %}<h2><a href="/overview/">Overview</a></h2>{% endblock %}
24  django_website/templates/base_weblog.html
... ...
@@ -0,0 +1,24 @@
  1
+{% extends "base_2col" %}
  2
+
  3
+{% block extrahead %}
  4
+<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss/weblog/" />
  5
+{% endblock %}
  6
+
  7
+{% block sectionid %}weblog{% endblock %}
  8
+
  9
+{% block title %}Weblog{% endblock %}
  10
+
  11
+{% block billboard %}<h2><a href="/weblog/">Weblog</a></h2>{% endblock %}
  12
+
  13
+{% block content-related %}
  14
+<h2>Archives</h2>
  15
+<ul class="linklist">
  16
+<li><a href="/weblog/2005/jul/">July 2005</a></li>
  17
+</ul>
  18
+
  19
+<h2>RSS feeds</h2>
  20
+<ul class="linklist">
  21
+<li><a href="/rss/weblog/">Latest weblog entries</a></li>
  22
+<li><a href="http://code.djangoproject.com/timeline?daysback=90&amp;max=50&amp;wiki=on&amp;ticket=on&amp;changeset=on&amp;milestone=on&amp;format=rss">Recent code changes</a></li>
  23
+</ul>
  24
+{% endblock %}
14  django_website/templates/blog/entries_archive.html
... ...
@@ -0,0 +1,14 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block content %}
  4
+
  5
+<h1>Latest entries</h1>
  6
+
  7
+{% for object in latest %}
  8
+<h2><a href="{{ object.get_absolute_url }}">{{ object.headline }}</a></h2>
  9
+{{ object.body }}
  10
+<p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
  11
+
  12
+{% endfor %}
  13
+
  14
+{% endblock %}
16  django_website/templates/blog/entries_archive_day.html
... ...
@@ -0,0 +1,16 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Weblog | {{ day|date:"F j" }}{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h1>{{ day|date:"F j" }} archive</h1>
  8
+
  9
+{% for object in object_list %}
  10
+<h2><a href="{{ object.get_absolute_url }}">{{ object.headline }}</a></h2>
  11
+<p class="small date">{{ object.pub_date|date:"F j, Y" }}</p>
  12
+{{ object.body }}
  13
+
  14
+{% endfor %}
  15
+
  16
+{% endblock %}
16  django_website/templates/blog/entries_archive_month.html
... ...
@@ -0,0 +1,16 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Weblog | {{ month|date:"F" }}{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h1>{{ month|date:"F" }} archive</h1>
  8
+
  9
+{% for object in object_list %}
  10
+<h2><a href="{{ object.get_absolute_url }}">{{ object.headline }}</a></h2>
  11
+<p class="small date">{{ object.pub_date|date:"F j, Y" }}</p>
  12
+{{ object.body }}
  13
+
  14
+{% endfor %}
  15
+
  16
+{% endblock %}
15  django_website/templates/blog/entries_archive_year.html
... ...
@@ -0,0 +1,15 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Weblog | {{ year }}{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h1>{{ year }} archive</h1>
  8
+
  9
+<ul class="linklist">
  10
+{% for date in date_list %}
  11
+<li><a href="{{ date|date:"M"|lower }}/">{{ date|date:"F" }}</a></li>
  12
+{% endfor %}
  13
+</ul>
  14
+
  15
+{% endblock %}
28  django_website/templates/blog/entries_detail.html
... ...
@@ -0,0 +1,28 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Weblog | {{ object.headline|escape }}{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h1>{{ object.headline }}</h1>
  8
+{{ object.body }}
  9
+<p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
  10
+
  11
+{% load comments %}
  12
+{% get_free_comment_list for blog.entries object.id as comment_list %}
  13
+
  14
+<div id="content-secondary">
  15
+<h2 id="comments">Comments</h2>
  16
+
  17
+{% for comment in comment_list %}
  18
+<div class="comment" id="c{{ comment.id }}">
  19
+	<h3>{{ comment.person_name }} <span class="small quiet">{{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}</span></h3>
  20
+    {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
  21
+</div>
  22
+{% endfor %}
  23
+
  24
+<h2>Post a comment</h2>
  25
+
  26
+{% free_comment_form for blog.entries object.id %}
  27
+</div>
  28
+{% endblock %}
45  django_website/templates/comments/free_preview.html
... ...
@@ -0,0 +1,45 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Django | Weblog | Preview comment{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<style type="text/css">
  8
+#comments textarea { width: 380px; font: 12px verdana,sans-serif; }
  9
+</style>
  10
+
  11
+<h1>Preview your comment</h1>
  12
+
  13
+<form action="../postfree/" method="post">
  14
+
  15
+{% if comment_form.has_errors %}
  16
+    <p><strong style="color: red;">Please correct the following errors.</strong></p>
  17
+{% else %}
  18
+    <div class="comment">
  19
+    {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
  20
+    <p class="date small">Posted by <strong>{{ comment.person_name }}</strong></p>
  21
+    </div>
  22
+
  23
+    <p><input type="submit" name="post" value="Post public comment" /></p>
  24
+
  25
+    <h1>Or edit it again</h1>
  26
+{% endif %}
  27
+
  28
+{% if comment_form.person_name.errors %}
  29
+    {{ comment_form.person_name.html_error_list }}
  30
+{% endif %}
  31
+
  32
+<p><label for="id_person_name">Your name:</label> {{ comment_form.person_name }}</p>
  33
+
  34
+{% if comment_form.comment.errors %}
  35
+{{ comment_form.comment.html_error_list }}
  36
+{% endif %}
  37
+
  38
+<p><label for="id_person_name">Comment:</label><br />{{ comment_form.comment }}</p>
  39
+<input type="hidden" name="options" value="{{ options }}" />
  40
+<input type="hidden" name="target" value="{{ target }}" />
  41
+<input type="hidden" name="gonzo" value="{{ hash }}" />
  42
+<p><input type="submit" name="preview" value="Preview revised comment" /></p>
  43
+</form>
  44
+
  45
+{% endblock %}
17  django_website/templates/comments/posted.html
... ...
@@ -0,0 +1,17 @@
  1
+{% extends "base_weblog" %}
  2
+
  3
+{% block title %}Comment posted{% endblock %}
  4
+
  5
+{% block content %}
  6
+
  7
+<h1>Comment posted successfully</h1>
  8
+
  9
+<p>Thanks for contributing.</p>
  10
+
  11
+{% if object %}
  12
+<ul>
  13
+<li><a href="{{ object.get_absolute_url }}">View your comment</a></li>
  14
+</ul>
  15
+{% endif %}
  16
+
  17
+{% endblock %}
30  django_website/templates/docs/documents_detail.html
... ...
@@ -0,0 +1,30 @@
  1
+{% extends "base_docs" %}
  2
+
  3
+{% block title %}Documentation | {{ object.title }}{% endblock %}
  4
+
  5
+{% block content %}
  6
+{{ object.get_content }}
  7
+
  8
+{% load comments %}
  9
+{% get_free_comment_list for docs.documents object.id as comment_list %}
  10
+
  11
+<div id="content-secondary">
  12
+<h2 id="comments">Comments</h2>
  13
+
  14
+{% for comment in comment_list %}
  15
+<div class="comment" id="c{{ comment.id }}">
  16
+	<h3>{{ comment.person_name }} <span class="small quiet">{{ comment.submit_date|date:"F j, Y" }} at {{ comment.submit_date|date:"P" }}</span></h3>
  17
+    {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
  18
+</div>
  19
+{% endfor %}
  20
+
  21
+<h2>Post a comment</h2>
  22
+
  23
+<p class="small quiet"><strong>Note:</strong> comments will be periodically reviewed, integrated
  24
+into the documentation proper, and removed.</p>
  25
+
  26
+{% free_comment_form for docs.documents object.id %}
  27
+</div>
  28
+{% endblock %}
  29
+
  30
+{% block content-related %}<h2>Contents</h2>{{ object.get_toc }}{% endblock %}
7  django_website/templates/flatfiles/code.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_code" %}
  2
+
  3
+{% block content %}
  4
+<h1>{{ flatfile.title }}</h1>
  5
+
  6
+{{ flatfile.content }}
  7
+{% endblock %}
7  django_website/templates/flatfiles/community.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_community" %}
  2
+
  3
+{% block content %}
  4
+<h1>{{ flatfile.title }}</h1>
  5
+
  6
+{{ flatfile.content }}
  7
+{% endblock %}
7  django_website/templates/flatfiles/default.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base" %}
  2
+
  3
+{% block content %}
  4
+<h1>{{ flatfile.title }}</h1>
  5
+
  6
+{{ flatfile.content }}
  7
+{% endblock %}
58  django_website/templates/flatfiles/docs.html
... ...
@@ -0,0 +1,58 @@
  1
+{% extends "base_docs" %}
  2
+
  3
+{% block content %}
  4
+<h1>Getting Started</h1>
  5
+
  6
+<p>Note that we're not officially launched yet, and we're continuing to improve documentation as our foremost goal.</p>
  7
+
  8
+<h1>The essentials</h1>
  9
+
  10
+<p>Read the following before anything else.</p>
  11
+
  12
+<h3><a href="install/">Installation guide</a></h3>
  13
+<p>How to get the code and set things up so that you can use Django.</p>
  14
+
  15
+<h3>Tutorial: Writing your first Django app</h3>
  16
+<ul>
  17
+<li><a href="/documentation/tutorial1/">Part 1: Initialization, creating models, the database API</a></li>
  18
+<li><a href="/documentation/tutorial2/">Part 2: Exploring the automatically-generated admin site</a></li>
  19
+</ul>
  20
+
  21
+<h3><a href="faq/">FAQ</a></h3>
  22
+<p>Wherein all Q's F A'd are answered.</p>
  23
+
  24
+<h1 id="reference">Reference</h1>
  25
+
  26
+<h3><a href="model_api/">Model reference</a></h3>
  27
+<p>An explanation of all the options and settings available to data models.</p>
  28
+
  29
+<h3><a href="db_api/">Database abstraction layer reference</a></h3>
  30
+<p>How to use data models to access the database.</p>
  31
+
  32
+<h3><a href="templates/">Template authoring guide</a></h3>
  33
+<p>An introduction and guide to the template language for designers and HTML authors.</p>
  34
+
  35
+<h3><a href="cache/">Cache framework</a></h3>
  36
+<p>So you got slashdotted. Now what?</p>
  37
+
  38
+<h3><a href="url_dispatch/">URL dispatch</a></h3>
  39
+<p>Design your URLs to be as purty as your code.</p>
  40
+
  41
+<h3><a href="admin_css/">Django admin CSS guide</a></h3>
  42
+<p>Although the underlying format of the admin pages is built in to Django, you
  43
+can customize the look and feel by editing the admin stylesheet and images.</p>
  44
+
  45
+{% endblock %}
  46
+
  47
+{% block content-related %}
  48
+
  49
+<h2>Getting help</h2>
  50
+<ul class="toc">
  51
+    <li><a href="irc://irc.freenode.net/django">#django IRC channel</a></li>
  52
+    <li><a href="http://loglibrary.com/show_page/latest/179">#django IRC logs</a></li>
  53
+    <li><a href="http://groups-beta.google.com/group/django-users">Django-users mailing list</a></li>
  54
+    <li><a href="http://groups-beta.google.com/group/django-developers">Django-developers mailing list</a></li>
  55
+    <li><a href="http://code.djangoproject.com/newticket">Report a bug</a></li>
  56
+</ul>
  57
+
  58
+{% endblock %}
7  django_website/templates/flatfiles/download.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_download" %}
  2
+
  3
+{% block content %}
  4
+<h1>{{ flatfile.title }}</h1>
  5
+
  6
+{{ flatfile.content }}
  7
+{% endblock %}
78  django_website/templates/flatfiles/homepage.html
... ...
@@ -0,0 +1,78 @@
  1
+{% extends "base_3col" %}
  2
+
  3
+{% block sectionid %}homepage{% endblock %}
  4
+
  5
+{% block billboard %}<h2>The Web framework for perfectionists (with deadlines). Django makes it easier to build better Web apps more quickly and with less code.</h2>{% endblock %}
  6
+
  7
+{% block content %}
  8
+<h1>Meet Django</h1>
  9
+<h2 class="deck">Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.</h2>
  10
+<p>Developed and used over the past two years by a newspaper Web operation, Django is well-suited for developing content-management systems. It was designed from scratch to handle the intensive deadlines of a newsroom and the stringent requirements of experienced Web developers. It focuses on automating as much as possible and adhering to the <a href="http://c2.com/cgi/wiki?DontRepeatYourself"><abbr title="Don't Repeat Yourself">DRY</abbr> principle</a>.</p>
  11
+<p>Dive in by <a href="/overview/">reading the overview &rarr;</a></p>
  12
+<p>When you're ready to code, read the <a href="/documentation/install/">installation guide</a> and <a href="/documentation/tutorial1/">tutorial</a>.</p>
  13
+<div id="content-secondary">
  14
+	<h2>The Django framework</h2>
  15
+	<h3>Object-relational mapper</h3>
  16
+	<p>Define your <a href="http://www.djangoproject.com/documentation/model_api/">data models</a> entirely in Python. You get a rich, <a href="/documentation/db_api/">dynamic database-access API</a> for free &mdash; but you can still write SQL if needed.</p>
  17
+	<h3>URL dispatcher</h3>
  18
+	<p>Design pretty, <a href="http://www.djangoproject.com/documentation/url_dispatch/">cruft-free URLs</a> with no framework-specific limitations. Be as flexible as you like.</p>
  19
+	<h3>Template system</h3>
  20
+	<p>Use Django's powerful and extensible <a href="http://www.djangoproject.com/documentation/templates/">template language</a> to separate design, content and Python code.</p>
  21
+	<h3>Cache system</h3>
  22
+	<p>Hook into memcached or other cache frameworks for <a href="http://www.djangoproject.com/documentation/cache/">super caching</a> &mdash; as granularly as you need.</p>
  23
+	<h3>Automatic admin interface</h3>
  24
+	<p>Save yourself the tedious work of creating interfaces for people to add and update content. <a href="http://www.djangoproject.com/documentation/admin_css/">Django does that automatically</a>.</p>
  25
+</div>
  26
+<!-- END #content-secondary -->
  27
+{% endblock %}
  28
+
  29
+{% block content-related %}
  30
+
  31
+<h2>Download</h2>
  32
+<ul class="linklist">
  33
+    <li><a href="/download/">Get current version: 1.0</a></li>
  34
+</ul>
  35
+<h2>Documentation</h2>
  36
+<ul class="linklist">
  37
+	<li><a href="/documentation/tutorial1/">Tutorial</a></li>
  38
+	<li><a href="/documentation/templates/">Template language guide</a></li>
  39
+	<li><a href="/documentation/#reference">API reference</a></li>
  40
+</ul>
  41
+<h2>Sites that use Django</h2>
  42
+<dl>
  43
+	<dt><a href="http://www.chicagocrime.org/">chicagocrime.org</a></dt>
  44
+	<dd>A freely browsable database of crimes reported in Chicago.</dd>
  45
+	<dt><a href="http://www.lawrence.com/">lawrence.com</a></dt>
  46
+	<dd>An internationally renowned local-entertainment site with events, stories, bands, drink specials and more.</dd>
  47
+	<dt><a href="http://www.ljworld.com/">LJWorld.com</a></dt>
  48
+	<dd>An industry-leading newspaper site.</dd>
  49
+	<dt><a href="http://www.kusports.com/">KUSports.com</a></dt>
  50
+	<dd>The bible for University of Kansas sports fans.</dd>
  51
+	<dt><a href="http://www.lawrencechamber.com/">lawrencechamber.com</a></dt>
  52
+	<dd>A Chamber of Commerce site that doesn't suck.</dd>
  53
+	<dt><a href="http://www.kkcscountry.com/">KKCScountry.com</a></dt>
  54
+	<dd>A radio station site in Colorado Springs.</dd>
  55
+</dl>
  56
+{% endblock %}
  57
+
  58
+{% block content-extra %}
  59
+<h2>Weblog</h2>
  60
+
  61
+{% load latestblogentry %}
  62
+{% get_latest_blog_entries 2 as latest_entries %}
  63
+
  64
+{% for latest_entry in latest_entries %}
  65
+<h3><a href="{{ latest_entry.get_absolute_url }}">{{ latest_entry.headline }}</a></h3>
  66
+<p class="date">by <strong>{{ latest_entry.author }}</strong> on {{ latest_entry.pub_date|date:"F j, Y" }}</p>
  67
+{{ latest_entry.summary }}
  68
+<p class="more"><a href="{{ latest_entry.get_absolute_url }}">Read more</a> / <a href="{{ latest_entry.get_absolute_url }}#comments">Comments</a></p>
  69
+{% endfor %}
  70
+
  71
+{% comment %}
  72
+<blockquote class="fancyquote">
  73
+<p>Django's cool. I should know because I’m British.</p>
  74
+<cite><strong>Simon Willison</strong><br />Mad Genius</cite>
  75
+</blockquote>
  76
+{% endcomment %}
  77
+
  78
+{% endblock %}
7  django_website/templates/flatfiles/overview.html
... ...
@@ -0,0 +1,7 @@
  1
+{% extends "base_overview" %}
  2
+
  3
+{% block content %}
  4
+<h1>{{ flatfile.title }}</h1>
  5
+
  6
+{{ flatfile.content }}
  7
+{% endblock %}
1  django_website/templates/rss/weblog_description.html
... ...
@@ -0,0 +1 @@
  1
+{{ obj.body }}
1  django_website/templates/rss/weblog_title.html
... ...
@@ -0,0 +1 @@
  1
+{{ obj.headline }}
5  django_website/templates/trac_templates/README
... ...
@@ -0,0 +1,5 @@
  1
+This directory contains Trac's default clearsilver templates.
  2
+
  3
+Local modifications to these files might be lost during the installation of 
  4
+a new Trac version. This can be avoided by making a copy of this entire
  5
+directory before beginning modifications.
40  django_website/templates/trac_templates/attachment.cs
... ...
@@ -0,0 +1,40 @@
  1
+<?cs set:html.stylesheet = 'css/code.css' ?>
  2
+<?cs include "header.cs" ?>
  3
+<?cs include "macros.cs" ?>
  4
+
  5
+<div id="ctxtnav" class="nav"></div>
  6
+
  7
+<div id="content" class="attachment">
  8
+
  9
+ <h3>Add Attachment to <a href="<?cs
  10
+   var:file.attachment_parent_href?>"><?cs var:file.attachment_parent?></a></h3>
  11
+ <form id="attachment" method="post" enctype="multipart/form-data" action="<?cs
  12
+   var:cgi_location ?>">
  13
+  <div class="field">
  14
+   <label for="file">File:</label>
  15
+   <input type="file" id="file" name="attachment" />
  16
+  </div>
  17
+  <fieldset>
  18
+   <legend>Attachment Info</legend>
  19
+   <div class="field">
  20
+    <label for="author">Your email or username:</label><br />
  21
+    <input type="text" id="author" name="author" class="textwidget" size="30"
  22
+        value="<?cs var:attachment.author?>" />
  23
+   </div>
  24
+   <div class="field">
  25
+    <label for="description">Description of the file (optional):</label><br />
  26
+    <input type="text" id="description" name="description" class="textwidget"
  27
+        size="60" />
  28
+   </div><br />
  29
+  </fieldset>
  30
+  <div class="buttons">
  31
+   <input type="hidden" name="mode" value="attachment" />
  32
+   <input type="hidden" name="type" value="<?cs var:attachment.type ?>" />
  33
+   <input type="hidden" name="id" value="<?cs var:attachment.id ?>" />
  34
+   <input type="submit" value="Add Attachment" />
  35
+   <input type="submit" name="cancel" value="Cancel" />
  36
+  </div>
  37
+ </form>
  38
+
  39
+</div>
  40
+<?cs include "footer.cs"?>
94  django_website/templates/trac_templates/browser.cs
... ...
@@ -0,0 +1,94 @@
  1
+<?cs set:html.stylesheet = 'css/browser.css' ?>
  2
+<?cs include: "header.cs"?>
  3
+<?cs include "macros.cs"?>
  4
+
  5
+<div id="ctxtnav" class="nav">
  6
+ <ul>
  7
+  <li class="last"><a href="<?cs var:browser.log_href ?>">Revision Log</a></li>
  8
+ </ul>
  9
+</div>
  10
+
  11
+<div id="content" class="browser">
  12
+ <?cs call:browser_path_links(browser.path, browser) ?>
  13
+
  14
+ <div id="jumprev">
  15
+  <form action="<?cs var:browser_current_href ?>" method="get">
  16
+   <div>
  17
+    <label for="rev">View revision:</label>
  18
+    <input type="text" id="rev" name="rev" value="<?cs
  19
+      var:browser.revision?>" size="4" />
  20
+   </div>
  21
+  </form>
  22
+ </div>
  23
+
  24
+ <table class="listing" id="dirlist">
  25
+  <thead>
  26
+   <tr>
  27
+    <th class="name<?cs if:browser.order == "name" ?> <?cs
  28
+      var:browser.order_dir ?><?cs /if ?>"><a title="Sort by name<?cs
  29
+      if:browser.order == "name" && browser.order_dir == "asc" ?> (descending)<?cs
  30
+      /if ?>" href="<?cs var:browser.current_href?>?order=name<?cs
  31
+      if:browser.order == "name" && browser.order_dir == "asc" ?>&desc=1<?cs
  32
+      /if ?>">Name</a>
  33
+    </th>
  34
+    <th class="rev">Rev</th>
  35
+    <th class="age<?cs if:browser.order == "date" ?> <?cs
  36
+      var:browser.order_dir ?><?cs /if ?>"><a title="Sort by age<?cs
  37
+      if:browser.order == "date" && browser.order_dir == "asc" ?> (descending)<?cs
  38
+      /if ?>" href="<?cs var:browser.current_href?>?order=date<?cs
  39
+      if:browser.order == "date" && browser.order_dir == "asc" ?>&desc=1<?cs
  40
+      /if ?>">Age</a>
  41
+    </th>
  42
+    <th class="change">Last Change</th>
  43
+   </tr>
  44
+  </thead>
  45
+  <tbody>
  46
+   <?cs if:browser.path != "/" ?>
  47
+    <tr class="even">
  48
+     <td class="name" colspan="4">
  49
+      <a class="parent" title="Parent Directory" href="<?cs
  50
+        var:browser.parent_href ?>">../</a>
  51
+     </td>
  52
+    </tr>
  53
+   <?cs /if ?>
  54
+   <?cs each:item = browser.items ?>
  55
+    <tr class="<?cs if:name(item) % #2 ?>even<?cs else ?>odd<?cs /if ?>">
  56
+     <td class="name"><?cs
  57
+      if:item.is_dir ?><?cs
  58
+       if:item.permission ?>
  59
+        <a class="dir" title="Browse Directory" href="<?cs
  60
+          var:item.browser_href ?>"><?cs var:item.name ?></a><?cs
  61
+       else ?>
  62
+        <span class="dir" title="Access Denied" href=""><?cs
  63
+          var:item.name ?></span><?cs
  64
+       /if ?><?cs
  65
+      else ?><?cs
  66
+       if:item.permission != '' ?>    
  67
+        <a class="file" title="View File" href="<?cs
  68
+          var:item.browser_href ?>"><?cs var:item.name ?></a><?cs
  69
+       else ?>
  70
+        <span class="file" title="Access Denied" href=""><?cs
  71
+          var:item.name ?></span><?cs
  72
+       /if ?><?cs
  73
+      /if ?>
  74
+     </td>
  75
+     <td class="rev"><?cs if:item.permission != '' ?><a title="View Revision Log" href="<?cs
  76
+       var:item.log_href ?>"><?cs var:item.created_rev ?></a><?cs else ?><?cs var:item.created_rev ?><?cs /if ?></td>
  77
+     <td class="age"><span title="<?cs var:item.date ?>"><?cs
  78
+       var:item.age ?></span></td>
  79
+     <td class="change">
  80
+      <span class="author"><?cs var:item.author ?>:</span>
  81
+      <span class="change"><?cs var:item.change ?></span>
  82
+     </td>
  83
+    </tr>
  84
+   <?cs /each ?>
  85
+  </tbody>
  86
+ </table>
  87
+
  88
+ <div id="help">
  89
+  <strong>Note:</strong> See <a href="<?cs var:trac.href.wiki
  90
+  ?>/TracBrowser">TracBrowser</a> for help on using the browser.
  91
+ </div>
  92
+
  93
+</div>
  94
+<?cs include:"footer.cs"?>
175  django_website/templates/trac_templates/changeset.cs
... ...
@@ -0,0 +1,175 @@
  1
+<?cs set:html.stylesheet = 'css/changeset.css' ?>
  2
+<?cs include "header.cs"?>
  3
+<?cs include "macros.cs"?>
  4
+
  5
+<div id="ctxtnav" class="nav">
  6
+ <h2>Changeset Navigation</h2>
  7
+ <ul><?cs
  8
+  if:len(links.prev) ?>
  9
+   <li class="first<?cs if:!len(links.next) ?> last<?cs /if ?>">
  10
+    <a class="prev" href="<?cs var:links.prev.0.href ?>" title="<?cs
  11
+      var:links.prev.0.title ?>">Previous Changeset</a>
  12
+   </li><?cs
  13
+  /if ?><?cs
  14
+  if:len(links.next) ?>
  15
+   <li class="<?cs if:len(links.prev) ?>first <?cs /if ?>last">
  16
+    <a class="next" href="<?cs var:links.next.0.href ?>" title="<?cs
  17
+      var:links.next.0.title ?>">Next Changeset</a>
  18
+   </li><?cs
  19
+  /if ?>
  20
+ </ul>
  21
+</div>
  22
+
  23
+<div id="content" class="changeset">
  24
+<h1>Changeset <?cs var:changeset.revision ?></h1>
  25
+
  26
+<?cs if:len(changeset.diff.files) ?><form method="post" id="prefs" action="">
  27
+ <div>
  28
+  <label for="style">View differences</label>
  29
+  <select id="style" name="style">
  30
+   <option value="inline"<?cs
  31
+     if:diff.style == 'inline' ?> selected="selected"<?cs
  32
+     /if ?>>inline</option>
  33
+   <option value="sidebyside"<?cs
  34
+     if:diff.style == 'sidebyside' ?> selected="selected"<?cs
  35
+     /if ?>>side by side</option>
  36
+  </select>
  37
+  <div class="field">
  38
+   Show <input type="text" name="contextlines" id="contextlines" size="2"
  39
+     maxlength="2" value="<?cs var:diff.options.contextlines ?>" />
  40
+   <label for="contextlines">lines around each change</label>
  41
+  </div>
  42
+  <fieldset id="ignore">
  43
+   <legend>Ignore:</legend>
  44
+   <div class="field">
  45
+    <input type="checkbox" id="blanklines" name="ignoreblanklines"<?cs
  46
+      if:diff.options.ignoreblanklines ?> checked="checked"<?cs /if ?> />
  47
+    <label for="blanklines">Blank lines</label>
  48
+   </div>
  49
+   <div class="field">
  50
+    <input type="checkbox" id="case" name="ignorecase"<?cs
  51
+      if:diff.options.ignorecase ?> checked="checked"<?cs /if ?> />
  52
+    <label for="case">Case changes</label>
  53
+   </div>
  54
+   <div class="field">
  55
+    <input type="checkbox" id="whitespace" name="ignorewhitespace"<?cs
  56
+      if:diff.options.ignorewhitespace ?> checked="checked"<?cs /if ?> />
  57
+    <label for="whitespace">White space changes</label>
  58
+   </div>
  59
+  </fieldset>
  60
+  <div class="buttons">
  61
+   <input type="submit" name="update" value="Update" />
  62
+  </div>
  63
+ </div>
  64
+</form><?cs /if ?>
  65
+
  66
+<dl id="overview">
  67
+ <dt class="time">Timestamp:</dt>
  68
+ <dd class="time"><?cs var:changeset.time ?></dd>
  69
+ <dt class="author">Author:</dt>
  70
+ <dd class="author"><?cs var:changeset.author ?></dd>
  71
+ <dt class="message">Message:</dt>
  72
+ <dd class="message" id="searchable"><?cs var:changeset.message ?></dd>
  73
+ <dt class="files">Files:</dt>
  74
+ <dd class="files"><?cs set:anchor_idx = #0 ?>
  75
+  <ul><?cs each:item = changeset.changes ?>
  76
+   <li>
  77
+    <?cs if:item.change == "A" ?>
  78
+     <div class="add"></div>
  79
+     <a href="<?cs var:item.browser_href ?>" title="Show file in browser"><?cs
  80
+       var:item.name ?></a> <span class="comment">(added)</span>
  81
+    <?cs elif:item.change == "M" ?>
  82
+     <div class="mod"></div>
  83
+     <a href="<?cs var:item.browser_href ?>" title="Show file in browser"><?cs
  84
+       var:item.name ?></a> <span class="comment">(modified)</span><?cs
  85
+     if:len(changeset.diff.files[anchor_idx].changes) ?>
  86
+      (<a href="#file<?cs var:anchor_idx ?>" title="Show differences">diff</a>)<?cs
  87
+     /if ?><?cs set:anchor_idx = anchor_idx + #1 ?>
  88
+    <?cs elif:item.change == "D" ?>
  89
+     <div class="rem"></div>
  90
+     <?cs var:item.name ?> <span class="comment">(deleted)</span>
  91
+    <?cs /if ?>
  92
+   </li>
  93
+  <?cs /each ?></ul>
  94
+ </dd>
  95
+</dl>
  96
+
  97
+<div class="diff">
  98
+ <div id="legend">
  99
+  <h3>Legend:</h3>
  100
+  <dl>
  101
+   <dt class="unmod"></dt><dd>Unmodified</dd>
  102
+   <dt class="add"></dt><dd>Added</dd>
  103
+   <dt class="rem"></dt><dd>Removed</dd>
  104
+   <dt class="mod"></dt><dd>Modified</dd>
  105
+  </dl>
  106
+ </div>
  107
+ <ul>
  108
+  <?cs each:file = changeset.diff.files ?>
  109
+   <?cs if:len(file.changes) ?>
  110
+    <li id="file<?cs var:name(file) ?>">
  111
+     <h2><a href="<?cs
  112
+       var:file.browser_href.new ?>" title="Show version <?cs
  113
+       var:file.rev.new ?> of this file in browser"><?cs
  114
+       var:file.name.new ?></a></h2>
  115
+     <?cs if:diff.style == 'sidebyside' ?>
  116
+      <table class="sidebyside" summary="Differences" cellspacing="0">
  117
+       <colgroup class="base">
  118
+        <col class="lineno" /><col class="content" />
  119
+       <colgroup class="chg">
  120
+        <col class="lineno" /><col class="content" />
  121
+       </colgroup>
  122
+       <thead><tr>
  123
+        <th colspan="2"><a href="<?cs var:file.browser_href.old ?>">Revision <?cs
  124
+          var:file.rev.old ?></a></th>
  125
+        <th colspan="2"><a href="<?cs var:file.browser_href.new ?>">Revision <?cs
  126
+          var:file.rev.new ?></a></th>
  127
+       </tr></thead>
  128
+       <?cs each:change = file.changes ?>
  129
+        <tbody>
  130
+         <?cs call:diff_display(change, diff.style) ?>
  131
+        </tbody>
  132
+        <?cs if:name(change) < len(file.changes) - 1 ?>
  133
+         <tbody class="skippedlines">
  134
+          <tr><th>&hellip;</th><td>&nbsp;</td>
  135
+          <th>&hellip;</th><td>&nbsp;</td></tr>
  136
+         </tbody>
  137
+        <?cs /if ?>
  138
+       <?cs /each ?>
  139
+      </table>
  140
+     <?cs else ?>
  141
+      <table class="inline" summary="Differences" cellspacing="0">
  142
+       <colgroup>
  143
+        <col class="lineno" />
  144
+        <col class="lineno" />
  145
+        <col class="content" />
  146
+       </colgroup>
  147
+       <thead><tr>
  148
+        <th title="Revision <?cs var:file.rev.old ?>"><a href="<?cs
  149
+          var:file.browser_href.old ?>" title="Show revision <?cs
  150
+          var:file.rev.old ?> of this file in browser">r<?cs
  151
+          var:file.rev.old ?></a></th>
  152
+        <th title="Revision <?cs var:file.rev.new ?>"><a href="<?cs
  153
+          var:file.browser_href.new ?>" title="Show revision <?cs
  154
+          var:file.rev.new ?> of this file in browser">r<?cs
  155
+          var:file.rev.new ?></a></th>
  156
+        <th>&nbsp;</th>
  157
+       </tr></thead>
  158
+       <?cs each:change = file.changes ?>
  159
+        <?cs call:diff_display(change, diff.style) ?>
  160
+        <?cs if:name(change) < len(file.changes) - 1 ?>
  161
+         <tbody class="skippedlines">
  162
+          <tr><th>&hellip;</th><th>&hellip;</th><td>&nbsp;</td></tr>
  163
+         </tbody>
  164
+        <?cs /if ?>
  165
+       <?cs /each ?>
  166
+      </table>
  167
+     <?cs /if ?>
  168
+    </li>
  169
+   <?cs /if ?>
  170
+  <?cs /each ?>
  171
+ </ul>
  172
+</div>
  173
+
  174
+</div>
  175
+<?cs include "footer.cs"?>
54  django_website/templates/trac_templates/error.cs
... ...
@@ -0,0 +1,54 @@
  1
+<?cs include "header.cs"?>
  2
+
  3
+<div id="ctxtnav" class="nav"></div>
  4
+
  5
+<div id="content" class="error">
  6
+
  7
+ <?cs if error.type == "TracError" ?>
  8
+  <h3><?cs var:error.title ?></h3>
  9
+  <p class="message">
  10
+  <?cs var:error.message ?>
  11
+  </p>
  12
+
  13
+ <?cs elif error.type == "internal" ?>
  14
+  <h3>Oops...</h3>
  15
+  <div class="message">
  16
+   <strong>Trac detected an internal error:</strong>
  17
+   <pre><?cs var:error.message ?></pre>
  18
+  </div>
  19
+  <p>
  20
+   If you think this really should work and you can reproduce it. Then you 
  21
+   should consider to report this problem to the Trac team.
  22
+  </p>
  23
+  <p>
  24
+   Go to <a href="<?cs var:trac.href.homepage ?>"><?cs
  25
+     var:trac.href.homepage ?></a>  and create a new ticket where you describe
  26
+   the problem, how to reproduce it. Don't forget to include the python
  27
+   traceback found below.
  28
+  </p>
  29
+
  30
+ <?cs elif error.type == "permission" ?>
  31
+  <h3>Permission Denied</h3>
  32
+  <p class="message">
  33
+  This action requires <tt><?cs var:error.action ?></tt> permission.
  34
+  </p>
  35
+  <div id="help">
  36
+   <strong>Note</strong>: See
  37
+   <a href="<?cs var:trac.href.wiki ?>/TracPermissions">TracPermissions</a> for
  38
+   help on managing Trac permissions.
  39
+  </div>
  40
+
  41
+ <?cs /if ?>
  42
+
  43
+ <p>
  44
+  <a href="<?cs var:trac.href.wiki ?>/TracGuide">TracGuide</a>
  45
+  &mdash; The Trac User and Administration Guide
  46
+ </p>
  47
+
  48
+ <?cs if $error.traceback ?>
  49
+  <h4>Python traceback</h4>
  50
+  <pre><?cs var:error.traceback ?></pre>
  51
+ <?cs /if ?>
  52
+
  53
+</div>
  54
+<?cs include "footer.cs"?>
70  django_website/templates/trac_templates/file.cs
</
... ...
@@ -0,0 +1,70 @@
  1
+<?cs set:html.stylesheet = 'css/browser.css' ?>
  2
+<?cs include "header.cs"?>
  3
+<?cs include "macros.cs"?>
  4
+
  5
+<div id="ctxtnav" class="nav">
  6
+ <?cs if:args.mode != 'attachment' && trac.acl.LOG_VIEW ?><ul>
  7
+  <li class="last"><a href="<?cs var:file.logurl ?>">Revision Log</a></li>
  8
+ </ul><?cs /if ?>
  9
+</div>
  10
+
  11
+<div id="content" class="file">
  12
+
  13
+ <?cs if file.attachment_parent ?>
  14
+  <h1><a href="<?cs var:file.attachment_parent_href ?>"><?cs
  15
+    var:file.attachment_parent ?></a>: <?cs var:file.filename ?></h1>
  16
+
  17
+ <?cs else ?>
  18
+  <?cs call:browser_path_links(file.path, file) ?>
  19
+  <div id="jumprev">
  20
+   <form action="" method="get">
  21
+    <div>
  22
+     <label for="rev">View revision:</label>
  23
+     <input type="text" id="rev" name="rev" value="<?cs
  24
+       var:file.rev ?>" size="4" />
  25
+    </div>
  26
+   </form>
  27
+  </div>
  28
+  <table id="info" summary="Revision info">
  29
+   <tr>
  30
+    <th scope="row">
  31
+     Revision <a href="<?cs var:file.chgset_href ?>"><?cs var:file.rev ?></a>
  32
+     (by <?cs var:file.rev_author ?>, <?cs var:file.rev_date ?>)
  33
+    </th>
  34
+    <td class="message"><?cs var:file.rev_msg ?></td>
  35
+   </tr>
  36
+  </table>
  37
+ <?cs /if ?>
  38
+
  39
+ <div id="preview">
  40
+  <?cs if:file.highlighted_html ?>
  41
+   <?cs var:file.highlighted_html ?>
  42
+  <?cs elif:file.max_file_size_reached ?>