diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-07 14:56:46 -0800 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-07 14:56:46 -0800 |
commit | 953fc002832a9afe59372bf513ef167916608e05 (patch) | |
tree | 73ba59d2479d240c7b14d9e1757b9e5cecad5fb6 /bn_django/git_wiki/templates | |
parent | 8a459f1bfcad487d6e594b9c3d7ca485a9084f49 (diff) | |
download | bnewnet-953fc002832a9afe59372bf513ef167916608e05.tar.gz bnewnet-953fc002832a9afe59372bf513ef167916608e05.zip |
comments progress, style changes
Diffstat (limited to 'bn_django/git_wiki/templates')
4 files changed, 44 insertions, 10 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/commit.html b/bn_django/git_wiki/templates/git_wiki/commit.html index 5eb5dd0..8497311 100644 --- a/bn_django/git_wiki/templates/git_wiki/commit.html +++ b/bn_django/git_wiki/templates/git_wiki/commit.html @@ -1,24 +1,27 @@ {% extends "git_wiki/base.html" %} +{% block title %}Commit: {{ commit.committer_date}} +{% endblock %} {% block gitwiki %} {% if commit %} - <h3>Commit sha1 hash</h3> + <b>Commit sha1 hash: </b> <span class="hash">{{ commit.id }}</span><br /> - <h3>Parent sha1 hash</h3> + <b>Parent sha1 hash: </b> {% if commit.parenthash %} <a href="/k/commit/{{ commit.parenthash }}/"> <span class="hash">{{ commit.parenthash }}</span></a> {% else %}No parent... root commit?{% endif %} - <h3>Tree sha1 hash</h3> + <br /> + <b>Tree sha1 hash: </b> {% if commit.treehash %} <span class="hash">{{ commit.treehash }}</span> {% else %}No tree hash?{% endif %} - <h3>Author</h3> + <br /><b>Author: </b> {{ commit.author }}<br /> - <h3>Author Date</h3> + <b>Author Date: </b> {{ commit.author_date }}<br /> - <h3>Committer</h3> + <b>Committer: </b> {{ commit.committer }}<br /> - <h3>Committer Date</h3> + <b>Committer Date: </b> {{ commit.committer_date }}<br /> {% if commit.rawdiff %} <pre class="large">{{ commit.rawdiff }}</pre> diff --git a/bn_django/git_wiki/templates/git_wiki/frontpage.html b/bn_django/git_wiki/templates/git_wiki/frontpage.html index 85698c4..0c8d245 100644 --- a/bn_django/git_wiki/templates/git_wiki/frontpage.html +++ b/bn_django/git_wiki/templates/git_wiki/frontpage.html @@ -20,12 +20,14 @@ If you're curious you can track my work in the <a href="/code">code</a> section. <div class="right_stuff"> For more recent content see the <a href="/timeline/">timeline</a> </div> -<h3><a href="/k/">Browse the knowledge!</a></h3> -<h3>Latest knowledge</h3> +<h2><a href="/k/">Browse the knowledge!</a></h2> +<h3>Latest knowledge items</h3> +{% include "git_wiki/newitems_table" %} +<h3>Latest knowledge commits</h3> {% include "git_wiki/shortlog_table" %} -<hr /> <h3>Latest comments</h3> {% if latest_comments %} +{% include "newcomments_table" %} {% else %} None yet! {% endif %} diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index 4258b1c..d9d33c9 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -31,6 +31,8 @@ {% 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 yes %} diff --git a/bn_django/git_wiki/templates/git_wiki/newitems_table b/bn_django/git_wiki/templates/git_wiki/newitems_table new file mode 100644 index 0000000..d86c538 --- /dev/null +++ b/bn_django/git_wiki/templates/git_wiki/newitems_table @@ -0,0 +1,27 @@ +{% if newitems %} +<table class="listing"> + {% for i in newitems reversed %} + <tr> <td class="filename"> + {% ifequal i.type 'blob' %} + <a href='/k/{{ i.slug }}/' class="item"> + {{i.path}}</a> + </td><td type="links"> + <a href='/k/{{ i.slug }}/pdf/'>pdf</a> + </td> + {% else %} {% ifequal i.type 'tree' %} + <a href='/k/{{ i.slug }}/' class="tree"> + {{i.path}}/</a> + </td><td type="links"> + <a href='/k/{{ i.slug }}/'>browse</a> + </td> + {% else %} + <a href='/k/{{ i.slug }}/' class="item"> + {{i.name}}</a> + </td><td type="links"> + </td> + {% endifequal %}{% endifequal %} + </tr> + {% endfor %} +</table> +{% else %}No new items! +{% endif %} |