Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 7bf9709

Browse files
committed
Merge branch 'master' into use_webpack
2 parents 0841a5a + 532b6ec commit 7bf9709

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ script:
2828
# Put the chromedriver in the path.
2929
- export PATH=$PATH:`pwd`
3030
# This URL was taken from a `post <https://groups.google.com/forum/#!topic/web2py/VXgsvfz67Fc>`_. Don't download the tagged releases from github, since they lack the DAL.
31-
- wget http://web2py.com/examples/static/${WEB2PY_VERSION}/web2py_src.zip
32-
- unzip web2py_src.zip
33-
- cd web2py/applications
31+
#- wget http://web2py.com/examples/static/${WEB2PY_VERSION}/web2py_src.zip
32+
#- wget https://github.com/web2py/web2py/archive/R-${WEB2PY_VERSION}.zip
33+
- git clone --branch R-2.18.5 https://github.com/web2py/web2py
34+
- cd web2py
35+
- git submodule update --init --recursive
36+
#- unzip R-${WEB2PY_VERSION}.zip
37+
- cd applications
3438
- mv ../../runestone .
3539
- cd runestone
3640
- mkdir private

static/motd.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h4>Recent Updates (April 28, 2020)</h4>
1111
</ul>
1212

1313
<h4>Support Runestone</h4>
14-
<p>The last few weeks have seen as many new courses going online as I saw in January! I'm so happy that
15-
Runestone can be a resource during this crazy time! Please consider making a small <a href="/runestone/default/donate">donation</a>
16-
to help pay for server costs and keeping runestone online.
14+
<p>Did you know that over 50,300 students have registered on Runestone Academy since August 2019!? At $100 a textbook we have
15+
saved students over $5 million! Thats a lot of student and a lot of savings. Please consider a <a href="/runestone/default/donate">donation</a>
16+
to help pay for server costs and the ongoing development needed to keep runestone online.
1717
</p>

tests/test_formatting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
import os
33
from .ci_utils import xqt, pushd
4+
import pytest
45

56

67
def tests_black_format_check(runestone_name):
@@ -12,6 +13,7 @@ def tests_black_format_check(runestone_name):
1213
)
1314

1415

16+
@pytest.mark.skip("only failing on Travis")
1517
def test_flake8_lint(runestone_name):
1618
with pushd("applications/{}".format(runestone_name)):
1719
controllers = os.listdir("controllers")

views/dashboard/grades.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ <h2>Gradebook</h2>
3232

3333
<thead style="cursor: pointer;">
3434
<tr id = "head">
35-
<td id="leaveAlone0">FName</td>
36-
<td id="leaveAlone1">LName</td>
37-
<td id="leaveAlone2">UName</td>
38-
<td id="leaveAlone3">E-mail</td>
39-
<td id="leaveAlone4">Practice</td>
35+
<td id="leaveAlone0" class="roguecol">FName</td>
36+
<td id="leaveAlone1" class="roguecol">LName</td>
37+
<td id="leaveAlone2" class="roguecol">UName</td>
38+
<td id="leaveAlone3" class="roguecol">E-mail</td>
39+
<td id="leaveAlone4" class="roguecol">Practice</td>
4040
{{for assignment in assignments:}}
4141
<td class="headrow">{{=assignment['name']}}</td>
4242
{{pass}}
@@ -45,11 +45,11 @@ <h2>Gradebook</h2>
4545

4646
<tbody>
4747
<tr style="background-color: lightgray" id="classaverage">
48-
<td>Class Average</td>
49-
<td> </td>
50-
<td> </td>
51-
<td> </td>
52-
<td>{{=practice_average}}</td>
48+
<td class="roguecol">Class Average</td>
49+
<td class="roguecol"> </td>
50+
<td class="roguecol"> </td>
51+
<td class="roguecol"> </td>
52+
<td class="roguecol">{{=practice_average}}</td>
5353
{{for average in range(len(averagerow)):}}
5454

5555
<!-- This if statement is to determine if a percent sign is needed in the average row. -->
@@ -114,6 +114,8 @@ <h2>Gradebook</h2>
114114
tablehead = document.getElementById("head");
115115
tablehead = tablehead.getElementsByTagName("td");
116116

117+
$("td").hide()
118+
$(".roguecol").show()
117119
for (i = 0; i < tablehead.length; i++) {
118120
if (tablehead[i].id != "leaveAlone") {
119121
console.log(tablehead[i].innerHTML)
@@ -128,16 +130,12 @@ <h2>Gradebook</h2>
128130
tds[j].style.display = "";
129131
}
130132

131-
} else {
132-
tablehead[i].style.display = "none";
133-
for (j = 0; j < tds.length; j ++) {
134-
tds[j].style.display = "none";
135-
}
136133
}
137134
}
138135
}
139136
}
140137

138+
141139
</script>
142140

143141
{{end}}

0 commit comments

Comments
 (0)