gitupdate template files and mod to accordion.html

This commit is contained in:
ichuang
2012-05-28 11:26:35 -04:00
parent 39c61070ed
commit e73fc0358b
2 changed files with 38 additions and 0 deletions

View File

@@ -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:
<h3><a href="#">quickedit</a></h3>
<ul><li><a href="${MITX_ROOT_URL}/quickedit/course.xml">gitreload</a></li></ul>
% endif

32
templates/gitupdate.html Normal file
View File

@@ -0,0 +1,32 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>edX gitupdate</title>
</head>
<body>
<hr>
<h1>edX gitupdate</h1>
<hr>
<h2>Coursename: ${coursename}</h2>
% if msg:
${msg}
% else:
<p>
Do you REALLY want to overwrite all the course.xml + problems + html
files with version from the main git repository?
</p>
<form method="post">
<input type="submit" value="Do git update" name="gitupdate" />
## <input type="submit" value="Cancel" name="cancel" />
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf}"/>
</form>
% endif
<p><a href="${MITX_ROOT_URL}/courseware">Return to site</a></p>
</body> </html>