From e73fc0358b4e9125aa2f45e491cb01c36b63f428 Mon Sep 17 00:00:00 2001 From: ichuang Date: Mon, 28 May 2012 11:26:35 -0400 Subject: [PATCH] gitupdate template files and mod to accordion.html --- templates/accordion.html | 6 ++++++ templates/gitupdate.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 templates/gitupdate.html diff --git a/templates/accordion.html b/templates/accordion.html index 95b7e540c0..d8ca925b79 100644 --- a/templates/accordion.html +++ b/templates/accordion.html @@ -23,3 +23,9 @@ % for chapter in toc: ${make_chapter(chapter)} % endfor + +## add a link to allow course.xml to be reloaded from the git content repo +% if settings.QUICKEDIT: +

quickedit

+ +% endif diff --git a/templates/gitupdate.html b/templates/gitupdate.html new file mode 100644 index 0000000000..fd7d1ef55e --- /dev/null +++ b/templates/gitupdate.html @@ -0,0 +1,32 @@ + + +edX gitupdate + + + +
+

edX gitupdate

+
+ +

Coursename: ${coursename}

+ +% if msg: + + ${msg} + +% else: +

+Do you REALLY want to overwrite all the course.xml + problems + html +files with version from the main git repository? +

+ +
+ +## + +
+% endif + +

Return to site

+ +