From 1962d247bfeae2c284bfbf191ed23e944a0bd58d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 8 Mar 2013 13:22:27 -0500 Subject: [PATCH] Make allow_anonymous and allow_anonymous_to_peers use field access in templates --- lms/templates/discussion/_inline_new_post.html | 6 +++--- lms/templates/discussion/_new_post.html | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lms/templates/discussion/_inline_new_post.html b/lms/templates/discussion/_inline_new_post.html index a1b347f548..a7b1781b18 100644 --- a/lms/templates/discussion/_inline_new_post.html +++ b/lms/templates/discussion/_inline_new_post.html @@ -7,15 +7,15 @@

- % if course.metadata.get("allow_anonymous", True): + % if course.allow_anonymous: - %elif course.metadata.get("allow_anonymous_to_peers", False): + %elif course.allow_anonymous_to_peers: %endif %if is_course_cohorted:
Make visible to: - %if is_moderator: %for c in cohorts: diff --git a/lms/templates/discussion/_new_post.html b/lms/templates/discussion/_new_post.html index 7848dd1488..f692eef654 100644 --- a/lms/templates/discussion/_new_post.html +++ b/lms/templates/discussion/_new_post.html @@ -23,7 +23,7 @@
-
+
@@ -41,18 +41,18 @@

- % if course.metadata.get("allow_anonymous", True): + % if course.allow_anonymous: - %elif course.metadata.get("allow_anonymous_to_peers", False): + %elif course.allow_anonymous_to_peers: %endif %if is_course_cohorted and is_moderator:
Make visible to: - %for c in cohorts: -