Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: bnmnetp/runestone
...
head fork: bnmnetp/runestone
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
2  controllers/designer.py
@@ -110,7 +110,7 @@ def build():
shutil.rmtree(sourcedir)
- return dict(mess='Your course is being built')
+ return dict(mess='Your course is ready',course_url='static/'+coursename+'/index.html' )
else:
moddata = {}
View
BIN  static/images/spinner10.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1  views/designer/build.html
@@ -9,6 +9,7 @@
{{ if mess:}}
<h1>{{=mess}}</h1>
+ You can access your course here: <a href="/{{=request.application}}/{{=course_url}}">Here</a>
{{ else: }}
<h4>Module Index</h4>
View
20 views/designer/index.html
@@ -8,7 +8,7 @@
<h5>{{=descr}}</h5>
-<form name="mainform" action="/{{=request.application}}/{{=request.controller}}/build" method="get">
+<form name="mainform" action="/{{=request.application}}/{{=request.controller}}/build" method="get" onsubmit="unhide_img('spinner'); return true;">
Project Name: <input type="text" value="Short name, no spaces" name="projectname" /> <br/>
Description: <input type="text" size="100" value="Enter a short description" name="projectdescription" /> <br /> <br />
@@ -26,9 +26,25 @@
<input type="submit" value="Submit" />
</form>
-
+<div style="align: center;">
+ <img id="spinner" src="/courselib/static/images/spinner10.gif" style="display: none;">
+</div>
{{pass}}
+<script type="text/javascript">
+ function unhide_img(id) {
+ var i = document.getElementById('spinner');
+ i.style.display = "block";
+ }
+ function show_image(src) {
+ var img = document.createElement("img");
+ img.src = src;
+ spinner = document.getElementById('spinner');
+ spinner.appendChild(img);
+ alert(img.src);
+ }
+</script>
+
{{block right_sidebar}}

No commit comments for this range

Something went wrong with that request. Please try again.