diff options
author | bryan newbold <bnewbold@snark.mit.edu> | 2009-01-19 06:23:59 -0500 |
---|---|---|
committer | bryan newbold <bnewbold@snark.mit.edu> | 2009-01-19 06:23:59 -0500 |
commit | 778c4c880e5fc1251286610c35aea5d5266fbe30 (patch) | |
tree | f583c7fda6b278cca2bb7b7b5aa377cb6de26824 /bn_django/git_wiki | |
parent | cd98a4f09f4d6a7676b9c4685ac9805a93533c0a (diff) | |
download | bnewnet-778c4c880e5fc1251286610c35aea5d5266fbe30.tar.gz bnewnet-778c4c880e5fc1251286610c35aea5d5266fbe30.zip |
Made changes so knowledge items get the TOC banged right. Probably looks bad in other browsers...
Diffstat (limited to 'bn_django/git_wiki')
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/item.html | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index 98f1647..cf49753 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -5,27 +5,31 @@ <link rel="STYLESHEET" type="text/css" href="/static/style/docutils.css" /> {% endblock %} +{% block right_stuff %}{{block.super}} +<b>Item name:</b> + <span class="hash">{{ item.name }}</span><br /> +<b>Item hash:</b> + <span class="hash">{{ item.id }}</span><br /> +<br /><b> +View as <a href="/k/{{ item.slug }}/pdf/">pdf</a>,<br /> +or as <a href="/k/{{ item.slug }}/latex/">LaTeX</a>,<br /> +or see the <a href="/k/{{ item.slug }}/raw/">raw source</a>.<br /> +<br /> +Browse the <a href="/k/{{ item.slug }}/log">changelog</a> +</b> +{% endblock %} + {% block path %}{{ block.super }} » <a href="/k/{{ item.slug }}/"> {{ item.path }}</a>{% endblock %} -{% block title %}{% endblock %} +{% comment %} Needed the extra .title css info... {% endcomment %} +{% block title %}<h1 class="title"> {% if doc.title %}{{ doc.title }}{% else %}[Unititled Document]{% endif %}</h1>{% endblock %} + +{% block subtitle %}{% if doc.subtitle %}{{doc.subtitle}}{% endif %}{% endblock %} {% block gitwiki %} -{{ doc.html_body|safe }} - <br /><hr /> - <h3>Meta</h3> - <b>Item name:</b> - <span class="hash">{{ item.name }}</span><br /> - <b>Item sha1 hash:</b> - <span class="hash">{{ item.id }}</span><br /> - <br /> - <span class="righty"> - <a href="/k/{{ item.slug }}/raw/">raw</a> - - <a href="/k/{{ item.slug }}/latex/">latex</a> - - <a href="/k/{{ item.slug }}/pdf/">pdf</a> - - <a href="/k/{{ item.slug }}/log">log</a> - </span> +{{ doc.fragment|safe }} <br /> {% endblock %} |