Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/mammooc-rating-widget.html
  • Loading branch information
MrSerth committed Oct 24, 2017
2 parents 3639d54 + 093def2 commit b502a0f
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 74 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mammooc-rating-widget
Widget to provide ratings and evaluations from mammmooc.org to other platforms. For documentation and a demo visit:
http://mammooc.github.io/mammooc-rating-widget/
https://mammooc.github.io/mammooc-rating-widget/

Feel free to contribute to the project!

Expand Down
128 changes: 64 additions & 64 deletions analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 132,
"line": 141,
"column": 20
},
"end": {
"line": 135,
"line": 144,
"column": 21
}
},
Expand All @@ -154,11 +154,11 @@
"privacy": "public",
"sourceRange": {
"start": {
"line": 140,
"line": 149,
"column": 20
},
"end": {
"line": 142,
"line": 151,
"column": 21
}
},
Expand All @@ -173,11 +173,11 @@
"privacy": "public",
"sourceRange": {
"start": {
"line": 147,
"line": 156,
"column": 20
},
"end": {
"line": 149,
"line": 158,
"column": 21
}
},
Expand All @@ -192,11 +192,11 @@
"privacy": "public",
"sourceRange": {
"start": {
"line": 154,
"line": 163,
"column": 20
},
"end": {
"line": 156,
"line": 165,
"column": 21
}
},
Expand All @@ -211,11 +211,11 @@
"privacy": "public",
"sourceRange": {
"start": {
"line": 161,
"line": 170,
"column": 20
},
"end": {
"line": 163,
"line": 172,
"column": 21
}
},
Expand All @@ -230,11 +230,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 165,
"line": 174,
"column": 20
},
"end": {
"line": 168,
"line": 177,
"column": 21
}
},
Expand All @@ -250,11 +250,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 170,
"line": 179,
"column": 20
},
"end": {
"line": 173,
"line": 182,
"column": 21
}
},
Expand All @@ -271,28 +271,52 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 181,
"line": 190,
"column": 12
},
"end": {
"line": 183,
"line": 192,
"column": 13
}
},
"metadata": {},
"params": []
},
{
"name": "_generateCourseUrl",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 194,
"column": 12
},
"end": {
"line": 196,
"column": 13
}
},
"metadata": {},
"params": [
{
"name": "provider"
},
{
"name": "courseId"
}
]
},
{
"name": "_generateEvaluationUrl",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 185,
"line": 198,
"column": 12
},
"end": {
"line": 187,
"line": 200,
"column": 13
}
},
Expand All @@ -318,11 +342,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 189,
"line": 202,
"column": 12
},
"end": {
"line": 195,
"line": 208,
"column": 13
}
},
Expand All @@ -335,11 +359,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 197,
"line": 210,
"column": 12
},
"end": {
"line": 209,
"line": 222,
"column": 13
}
},
Expand All @@ -356,11 +380,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 211,
"line": 224,
"column": 12
},
"end": {
"line": 217,
"line": 230,
"column": 13
}
},
Expand All @@ -380,11 +404,11 @@
"privacy": "protected",
"sourceRange": {
"start": {
"line": 219,
"line": 232,
"column": 12
},
"end": {
"line": 229,
"line": 242,
"column": 13
}
},
Expand All @@ -401,11 +425,11 @@
"metadata": {},
"sourceRange": {
"start": {
"line": 122,
"line": 131,
"column": 8
},
"end": {
"line": 230,
"line": 243,
"column": 9
}
},
Expand All @@ -418,11 +442,11 @@
"description": "The provider of the course, e.g. \"openHPI\"",
"sourceRange": {
"start": {
"line": 140,
"line": 149,
"column": 20
},
"end": {
"line": 142,
"line": 151,
"column": 21
}
},
Expand All @@ -434,11 +458,11 @@
"description": "The ID of the course in the provider's system",
"sourceRange": {
"start": {
"line": 147,
"line": 156,
"column": 20
},
"end": {
"line": 149,
"line": 158,
"column": 21
}
},
Expand All @@ -450,11 +474,11 @@
"description": "The number of items shown per page",
"sourceRange": {
"start": {
"line": 154,
"line": 163,
"column": 20
},
"end": {
"line": 156,
"line": 165,
"column": 21
}
},
Expand All @@ -466,11 +490,11 @@
"description": "The number of ratings in general",
"sourceRange": {
"start": {
"line": 161,
"line": 170,
"column": 20
},
"end": {
"line": 163,
"line": 172,
"column": 21
}
},
Expand Down Expand Up @@ -1019,41 +1043,17 @@
}
]
},
{
"name": "_generateCourseUrl",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 185,
"column": 12
},
"end": {
"line": 187,
"column": 13
}
},
"metadata": {},
"params": [
{
"name": "provider"
},
{
"name": "courseId"
}
]
},
{
"name": "_handleRatingResponse",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 189,
"line": 185,
"column": 12
},
"end": {
"line": 196,
"line": 192,
"column": 13
}
},
Expand All @@ -1079,7 +1079,7 @@
"column": 8
},
"end": {
"line": 197,
"line": 193,
"column": 9
}
},
Expand Down Expand Up @@ -1193,7 +1193,7 @@
"column": 4
},
"end": {
"line": 100,
"line": 104,
"column": 5
}
},
Expand Down
13 changes: 13 additions & 0 deletions src/mammooc-course-evaluation.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
--iron-icon-width: 20px;
}

.heading {
display:inline;
}

a {
color: var(--mammooc-rating-widget-primary-color, #ffac33);
}

.evaluations > iron-scroll-threshold {
max-height: 200px;
overflow-y: scroll;
Expand Down Expand Up @@ -98,6 +106,7 @@
<div class="heading">
{{localize("courseevaluations")}}
</div>
<a target="_blank" href="{{_generateCourseUrl(provider, courseId)}}" >{{localize("seeall")}}</a>
<div class="evaluations">
<iron-scroll-threshold id="scrollThreshold" on-lower-threshold="_loadMoreData">
<iron-list scroll-target="scrollThreshold" items="[[_evaluations]]" as="evaluation" selection-enabled multi-selection>
Expand Down Expand Up @@ -183,6 +192,10 @@
super.ready();
}

_generateCourseUrl(provider, courseId) {
return 'https://mammooc.org/courses/' + provider + '~' + courseId;
}

_generateEvaluationUrl(provider, courseId, perPage, page) {
return 'https://mammooc.org/evaluations/export_course_evaluations?provider=' + provider + '&course_id=' + courseId + '&page=' + page + '&per_page=' + perPage;
}
Expand Down
Loading

0 comments on commit b502a0f

Please sign in to comment.