diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-03-13 22:51:10 -0700 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-03-13 22:51:10 -0700 |
commit | 0d98413be85e55dbb992f2be9614d44daf3e8e27 (patch) | |
tree | 146877b9c7d6f8c53fb0eae8963941b6cf4801e7 /bn_django/git_wiki/templates | |
parent | 9065cb663a14ab263295694426071cd42b0bb4ae (diff) | |
download | bnewnet-0d98413be85e55dbb992f2be9614d44daf3e8e27.tar.gz bnewnet-0d98413be85e55dbb992f2be9614d44daf3e8e27.zip |
got latex, raw, and download links working
Diffstat (limited to 'bn_django/git_wiki/templates')
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/newitems_table | 18 | ||||
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/tree_table | 11 |
2 files changed, 20 insertions, 9 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/newitems_table b/bn_django/git_wiki/templates/git_wiki/newitems_table index d86c538..e072a10 100644 --- a/bn_django/git_wiki/templates/git_wiki/newitems_table +++ b/bn_django/git_wiki/templates/git_wiki/newitems_table @@ -3,11 +3,19 @@ {% 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> + {% if i.isfig %} + <a href='/k/{{ i.slug }}' class="item"> + {{i.path}}</a> + </td><td type="links"> + <a href='/k/{{ i.slug }}'>download</a> + {% else %} + <a href='/k/{{ i.slug }}' class="item"> + {{i.path}}</a> + </td><td type="links"> + <a href='/k/{{ i.slug }}/pdf/'>pdf</a> + <a href='/k/{{ i.slug }}/latex/'>latex</a> + <a href='/k/{{ i.slug }}/raw/'>raw</a> + {% endif %} {% else %} {% ifequal i.type 'tree' %} <a href='/k/{{ i.slug }}/' class="tree"> {{i.path}}/</a> diff --git a/bn_django/git_wiki/templates/git_wiki/tree_table b/bn_django/git_wiki/templates/git_wiki/tree_table index c1f9a82..2f638ef 100644 --- a/bn_django/git_wiki/templates/git_wiki/tree_table +++ b/bn_django/git_wiki/templates/git_wiki/tree_table @@ -5,12 +5,15 @@ {{o.type}}</td> <td class="filename"> {% ifequal o.type 'blob' %} - <a href='/k/{{ o.slug }}/' class="item"> - {{o.path}}</a> - </td><td type="links"> {% if o.isfig %} - <a href='/k/{{ o.slug }}'>download</a> + <a href='/k/{{ o.slug }}' class="item"> + {{o.path}}</a> + </td><td type="links"> + <a href='/k/{{ o.slug }}/download/'>download</a> {% else %} + <a href='/k/{{ o.slug }}/' class="item"> + {{o.path}}</a> + </td><td type="links"> <a href='/k/{{ o.slug }}/pdf/'>pdf</a> <a href='/k/{{ o.slug }}/latex/'>latex</a> <a href='/k/{{ o.slug }}/raw/'>raw</a> |