aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/templates/git_wiki/item.html
blob: cf4975371415293567146f6dc0e81332838ef493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends "git_wiki/base.html" %}

{% block stylesheets %}
{{ block.super }}
<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 }} &raquo; <a href="/k/{{ item.slug }}/">
    {{ item.path }}</a>{% 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 %}
&nbsp;
{{ doc.fragment|safe }}
    <br />
{% endblock %}

{% comment %}
BROKEN, comments need char type primary keys
{% block commentary %}
<div class="content" id="commentary">
{% load comments %}
<br /><p><em>IMPORTANT: Comments only apply to this revision of the item!
They will be lost if the item is updated.</em></p>
<h3>Post a comment</h3>
{% if user.is_authenticated %}
{% comment_form for git_wiki.item item.id with is_public true %}
{% else %}
{% free_comment_form for git_wiki.item item.id with is_public true %}
{% endif %}
<br />
{% get_comment_list for git_wiki.item item.id as comments %}
{% get_free_comment_list for git_wiki.item item.id as free_comments %}
{% include "comment_list" %}
</div>
{% endblock %}
{% endcomment %}