diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-13 19:39:51 -0700 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-13 19:39:51 -0700 |
commit | a18139d905a91786407f71273e2b257e546a814e (patch) | |
tree | a5aae5f0c7feb8eaabde7eda3bdbd4e1a89fd879 /bn_django/git_wiki/templates | |
parent | d7db262344b5dea3e7cd8de857a24553d96b45fb (diff) | |
download | bnewnet-a18139d905a91786407f71273e2b257e546a814e.tar.gz bnewnet-a18139d905a91786407f71273e2b257e546a814e.zip |
incremental work
Diffstat (limited to 'bn_django/git_wiki/templates')
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/item.html | 1 | ||||
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/tree.html | 6 | ||||
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/tree_table | 10 |
3 files changed, 11 insertions, 6 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/item.html b/bn_django/git_wiki/templates/git_wiki/item.html index d9d33c9..e26722d 100644 --- a/bn_django/git_wiki/templates/git_wiki/item.html +++ b/bn_django/git_wiki/templates/git_wiki/item.html @@ -22,6 +22,7 @@ <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> diff --git a/bn_django/git_wiki/templates/git_wiki/tree.html b/bn_django/git_wiki/templates/git_wiki/tree.html index 1c33a98..08f6e35 100644 --- a/bn_django/git_wiki/templates/git_wiki/tree.html +++ b/bn_django/git_wiki/templates/git_wiki/tree.html @@ -6,12 +6,10 @@ {% block title %}Knowledge Category: {{ tree.path }}{% endblock %} {% block gitwiki %} - <h3>Tree sha1 hash:</h3> - <span class="hash">{{ tree.id }}</span> - <h3>Tree path:</h3> - <span class="hash">{{ tree.path }}</span> <h3>Directory listing:</h3> {% include "git_wiki/tree_table" %} + <h3>Tree sha1 hash:</h3> + <span class="hash">{{ tree.id }}</span> <h3>Shortlog:</h3> {% include "git_wiki/shortlog_table" %} {% endblock %} diff --git a/bn_django/git_wiki/templates/git_wiki/tree_table b/bn_django/git_wiki/templates/git_wiki/tree_table index 82d169a..c1f9a82 100644 --- a/bn_django/git_wiki/templates/git_wiki/tree_table +++ b/bn_django/git_wiki/templates/git_wiki/tree_table @@ -8,7 +8,13 @@ <a href='/k/{{ o.slug }}/' class="item"> {{o.path}}</a> </td><td type="links"> - <a href='/k/{{ o.slug }}/pdf/'>pdf</a> + {% if o.isfig %} + <a href='/k/{{ o.slug }}'>download</a> + {% else %} + <a href='/k/{{ o.slug }}/pdf/'>pdf</a> + <a href='/k/{{ o.slug }}/latex/'>latex</a> + <a href='/k/{{ o.slug }}/raw/'>raw</a> + {% endif %} </td> {% else %} {% ifequal o.type 'tree' %} <a href='/k/{{ o.slug }}/' class="tree"> @@ -17,7 +23,7 @@ <a href='/k/{{ o.slug }}/'>browse</a> </td> {% else %} - <a href='/k/{{ o.slug }}/' class="item"> + <a href='/k/{{ o.slug }}' class="item"> {{o.name}}</a> </td><td type="links"> </td> |