1. David Chambers
  2. Mango

Commits

David Chambers  committed 5d06cf2

Added `form` to context dictionary passed to `post.dhtml`. Minor template change.

  • Participants
  • Parent commits 5c6acb2
  • Branches default

Comments (0)

Files changed (2)

File templates/index.dhtml

View file
 {% block content %}
 	{% for post in posts %}{% if forloop.counter <= 5 %}
 			<article>
-				<h2><a href="{{ post.meta.path }}{{ post.meta.slug }}/">{{ post.meta.title|safe }}</a></h2>
-				<time datetime="{{ post.meta.datetime|datetime }}">{{ post.meta.datetime|display_date }}</time>
+				<header>
+					<h2><a href="{{ post.meta.path }}{{ post.meta.slug }}/">{{ post.meta.title|safe }}</a></h2>
+					<time datetime="{{ post.meta.datetime|datetime }}">{{ post.meta.datetime|display_date }}</time>
+				</header>
 				{{ post.excerpt|safe }}
 			</article>
 	{% else %}{% if forloop.last %}

File views.py

View file
 		context['thread'] = thread
 		context['num_visible_posts'] = num_visible_posts
 		context['type'] = 'post' if 'datetime' in context['meta'] else 'page'
+		context['form'] = form
 
 		return render_to_string('post.dhtml', dict(context, **context_defaults(request)))