-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #7021: Add a skill tab in the topic viewer #7287
Changes from 1 commit
0db408e
975c124
afb044a
3008786
ea5d418
dfa9bec
03edb30
ca1405d
50b9be7
e992de5
19df2d5
47e5d5d
c6404ce
b449149
ad613d2
709a4df
00c6031
658d7f6
d986662
396bdba
d11e885
a0ab30d
029526e
7e29fa8
fa2eba7
00031ae
7b1a384
ba956fa
a6291aa
75c41be
7a98672
71664bb
2872a06
b1b4a2e
a6d16f1
d36dab5
8766255
61d2885
6d668ba
9a24864
22f7b92
1f743cf
deda6da
de47c02
0cd3979
3107f1e
b5e5497
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<div class="skills"> | ||
<h3 class="form-heading"> Skills included in this topic </h3> | ||
<h4 ng-if="!$ctrl.userIsLoggedIn" style="color: gray;"> Please login to view your skill mastery. </h4> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add style through classname. (ditto elsewhere.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
<table class="skill-mastery-table" ng-if="$ctrl.sortedSkillIds.length > 0"> | ||
<table class="skill-mastery-table" ng-if="$ctrl.skillIdsAndMastery.length > 0"> | ||
<colgroup> | ||
<col style="width: 40%;"> | ||
<col style="width: 60%"> | ||
|
@@ -16,19 +16,19 @@ <h4 ng-if="!$ctrl.userIsLoggedIn" style="color: gray;"> Please login to view you | |
Skill Mastery | ||
</th> | ||
</tr> | ||
<tr ng-repeat="skillId in $ctrl.sortedSkillIds" | ||
<tr ng-repeat="item in $ctrl.skillIdsAndMastery | orderBy: '-mastery'" | ||
class="list-item" | ||
style="height: 4em;" | ||
ng-click="$ctrl.openConceptCardModal(skillId)"> | ||
<td> <[$ctrl.getSkillDescriptions()[skillId]]> </td> | ||
ng-click="$ctrl.openConceptCardModal(item.skillId)"> | ||
<td> <[$ctrl.getSkillDescriptions()[item.skillId]]> </td> | ||
<td> | ||
<div class="oppia-skill-mastery-container"> | ||
<div class="score-bar" style="width: <[$ctrl.getMasteryPercentage($ctrl.getDegreesOfMastery()[skillId])]>%; background: <[$ctrl.getColorForMastery($ctrl.getDegreesOfMastery()[skillId])]>"></div> | ||
<div class="score-bar" style="width: <[$ctrl.getMasteryPercentage($ctrl.getDegreesOfMastery()[item.skillId])]>%; background: <[$ctrl.getColorForMastery($ctrl.getDegreesOfMastery()[item.skillId])]>"></div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this looks complicated, can we use ng-style or some other way to make it look simple? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<h4 ng-if="$ctrl.sortedSkillIds.length === 0" style="color: gray;"> | ||
<h4 ng-if="$ctrl.skillIdsAndMastery.length === 0" style="color: gray;"> | ||
No skill is assigned to this topic. | ||
</h4> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name this class such that it starts with
oppia-
to make it specific. ditto elsewhereThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.