From ecc65d6ebc48f075c7a34571ec9a6faac3689494 Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Fri, 31 Aug 2012 18:01:33 -0700 Subject: [PATCH] Moved some templates into separate files. --- lms/templates/discussion/_new_post.html | 54 +++++++ .../discussion/_underscore_templates.html | 80 ++++++++++ lms/templates/discussion/single_thread.html | 143 +----------------- 3 files changed, 139 insertions(+), 138 deletions(-) create mode 100644 lms/templates/discussion/_new_post.html create mode 100644 lms/templates/discussion/_underscore_templates.html diff --git a/lms/templates/discussion/_new_post.html b/lms/templates/discussion/_new_post.html new file mode 100644 index 0000000000..ef2dd75450 --- /dev/null +++ b/lms/templates/discussion/_new_post.html @@ -0,0 +1,54 @@ +
+
+
+
+ +
+ Homework / Week 1 +
+ + +
+
+
+ +
+ +
+
+
+
+ +
+
+ +
Preview
+
+
+ +
+ + Cancel +
+
+
+
\ No newline at end of file diff --git a/lms/templates/discussion/_underscore_templates.html b/lms/templates/discussion/_underscore_templates.html new file mode 100644 index 0000000000..6946b2c92b --- /dev/null +++ b/lms/templates/discussion/_underscore_templates.html @@ -0,0 +1,80 @@ + + + + + + + + + diff --git a/lms/templates/discussion/single_thread.html b/lms/templates/discussion/single_thread.html index f238e3d967..cab4502dcf 100644 --- a/lms/templates/discussion/single_thread.html +++ b/lms/templates/discussion/single_thread.html @@ -1,5 +1,8 @@ <%! import django_comment_client.helpers as helpers %> <%! from django.template.defaultfilters import escapejs %> +<%! from django.core.urlresolvers import reverse %> +<%! from courseware.access import has_access %> + <%inherit file="../main.html" /> <%namespace name='static' file='../static_content.html'/> <%block name="bodyclass">discussion @@ -33,9 +36,6 @@ -<%! from django.core.urlresolvers import reverse %> -<%! from courseware.access import has_access %> - -
-
-
-
- -
- Homework / Week 1 -
- - -
-
-
- -
- -
-
-
-
- -
-
- -
Preview
-
-
- -
- - Cancel -
-
-
-
+<%include file="_new_post.html" />
@@ -131,84 +78,4 @@
- - - - - - - - - - +<%include file="_underscore_templates.html" />