From e0f74fafe783ef64a8d907dfad84feffd6d3ecb6 Mon Sep 17 00:00:00 2001
From: gfawcett
Date: Sun, 11 Jan 2009 23:44:34 +0000
Subject: [PATCH] Fix for borked last commit (forgot the hide-edit-links code).
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@109 6d9bc8c9-1ec2-4278-b937-99fde70a366f
---
conifer/templates/components/item.xhtml | 4 ++--
conifer/templates/course_detail.xhtml | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/conifer/templates/components/item.xhtml b/conifer/templates/components/item.xhtml
index 5eed7af..6b93494 100644
--- a/conifer/templates/components/item.xhtml
+++ b/conifer/templates/components/item.xhtml
@@ -4,7 +4,7 @@
py:strip="">
-
+
-
${item}
@@ -13,7 +13,7 @@
[edit]
- ${show_tree(subs)}
+ ${show_tree(subs, edit)}
diff --git a/conifer/templates/course_detail.xhtml b/conifer/templates/course_detail.xhtml
index 4410d6e..4d961e3 100644
--- a/conifer/templates/course_detail.xhtml
+++ b/conifer/templates/course_detail.xhtml
@@ -1,6 +1,7 @@
There are no items associated with this course yet.
- ${show_tree(course.item_tree())}
- ${add_subs()}
+ ${show_tree(item_tree, edit=is_editor)}
+ ${add_subs()}