aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/templates/git_wiki/item.html
blob: 98f164710dc9f91adc384b6d19c7917e699e35ce (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
{% extends "git_wiki/base.html" %}

{% block stylesheets %}
{{ block.super }}
<link rel="STYLESHEET" type="text/css" href="/static/style/docutils.css" />
{% endblock %}

{% block path %}{{ block.super }} &raquo; <a href="/k/{{ item.slug }}/">
    {{ item.path }}</a>{% endblock %}

{% block title %}{% endblock %}

{% block gitwiki %}
&nbsp;
{{ 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>
    <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 %}