Skip to content

Commit 92477a6

Browse files
authored
Merge pull request #987 from thecourseforum/dev
Fix user reviews and add reviews page
2 parents 6c86cae + afa060a commit 92477a6

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed
-21.9 KB
Binary file not shown.
-54.6 KB
Binary file not shown.

tcf_website/static/reviews/new_review.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jQuery(function ($) {
6969
&page_size=${pageSize}&recent`;
7070
$.getJSON(courseEndpoint, function (data) {
7171
// Generate option tags
72-
$.each(data.results, function (i, course) {
72+
$.each(data, function (i, course) {
7373
$("<option />", {
7474
val: course.id,
7575
text: course.number + " | " + course.title,
@@ -105,7 +105,7 @@ jQuery(function ($) {
105105
clearDropdown("#instructor"); // Empty dropdown
106106

107107
// Generate option tags
108-
$.each(data.results, function (i, instr) {
108+
$.each(data, function (i, instr) {
109109
$("<option />", {
110110
val: instr.id,
111111
text: instr.last_name + ", " + instr.first_name,

tcf_website/templates/reviews/user_reviews.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ <h1 class="h2 mt-2 mb-0">My reviews</h1>
1616
</a>
1717
</div>
1818
{% include "reviews/review_stats.html" with total_reviews_written=total_reviews_written total_review_upvotes=total_review_upvotes average_review_rating=average_review_rating %}
19-
{% include "reviews/reviews.html" with reviews=user.reviews profile=True %}
19+
{% include "reviews/reviews.html" with paginated_reviews=user.reviews profile=True %}
2020
</div>
2121
{% endblock %}

tcf_website/views/team_info.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,20 +255,6 @@
255255
"class": "2027",
256256
"img_filename": "ENG_Namai_Kureishi.jpg",
257257
"github": "namaikureishi"
258-
},
259-
{
260-
"name": "Ronit Batra",
261-
"role": "Developer",
262-
"class": "2027",
263-
"img_filename": "ENG_Ronit_Batra.jpg",
264-
"github": "ronitbatra"
265-
},
266-
{
267-
"name": "Sagun Venuganti",
268-
"role": "Developer",
269-
"class": "2027",
270-
"img_filename": "ENG_Sagun_Venuganti.jpg",
271-
"github": "sagunvenuganti"
272258
}
273259
],
274260
"marketing_team": [

0 commit comments

Comments
 (0)