From 2f81eff5ea7c0c13ab3028cee35b591f56d76e2a Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 24 Feb 2007 16:51:49 -0800 Subject: added restructured text processing, fixed path bug in knowledge --- bn_django/git_wiki/templates/git_wiki/base.html | 3 --- bn_django/git_wiki/templates/git_wiki/item.html | 4 ++++ bn_django/settings.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bn_django/git_wiki/templates/git_wiki/base.html b/bn_django/git_wiki/templates/git_wiki/base.html index 526a707..eefaa9a 100644 --- a/bn_django/git_wiki/templates/git_wiki/base.html +++ b/bn_django/git_wiki/templates/git_wiki/base.html @@ -11,9 +11,6 @@ {% block path %} {{ block.super }} knowledge -{% if item %} - » {{ object.title }} -{% endif %} {% endblock %} {% block title %} diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index 0df1b72..7562fc6 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -1,11 +1,15 @@ {% extends "git_wiki/base.html" %} +{% load markup %} + {% block path %}{{ block.super }} » {{ item.path }}{% endblock %} {% block title %}Knowledge Item: {{ item.path }}{% endblock %} {% block gitwiki %} + {{ item.contents|restructuredtext }} +

Item name:

{{ item.name }}

Item sha1 hash:

diff --git a/bn_django/settings.py b/bn_django/settings.py index 4e6c1b0..55444f7 100644 --- a/bn_django/settings.py +++ b/bn_django/settings.py @@ -80,6 +80,7 @@ INSTALLED_APPS = ( 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.flatpages', + 'django.contrib.markup', 'bn_django.photos', 'bn_django.git_wiki', 'bn_django.git_browse', -- cgit v1.2.3