From 0d98413be85e55dbb992f2be9614d44daf3e8e27 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 13 Mar 2007 22:51:10 -0700 Subject: got latex, raw, and download links working --- bn_django/git_wiki/templates/git_wiki/newitems_table | 18 +++++++++++++----- bn_django/git_wiki/templates/git_wiki/tree_table | 11 +++++++---- 2 files changed, 20 insertions(+), 9 deletions(-) (limited to 'bn_django/git_wiki/templates') 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 %} {% ifequal i.type 'blob' %} - - {{i.path}} - - pdf - + {% if i.isfig %} + + {{i.path}} + + download + {% else %} + + {{i.path}} + + pdf  + latex  + raw + {% endif %} {% else %} {% ifequal i.type 'tree' %} {{i.path}}/ 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}} {% ifequal o.type 'blob' %} - - {{o.path}} - {% if o.isfig %} - download + + {{o.path}} + + download {% else %} + + {{o.path}} + pdf  latex  raw -- cgit v1.2.3