Skip to content

Commit b8dfa21

Browse files
authored
feat(Unit Info): Hide standard names and show in tooltip (#2182)
1 parent f803d10 commit b8dfa21

File tree

4 files changed

+30
-26
lines changed

4 files changed

+30
-26
lines changed

src/app/modules/library/library-project-details/library-project-details.component.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<div>
44
<span i18n>{{ standardsName }}: </span>
55
@for (standard of standards; track standard.id; let last = $last) {
6-
<a href="{{ standard.url }}" target="_blank"
7-
><b>{{ standard.id }}</b> {{ standard.name }}</a
6+
<a
7+
href="{{ standard.url }}"
8+
target="_blank"
9+
[matTooltip]="standard.name"
10+
matTooltipPosition="above"
11+
>{{ standard.id }}</a
812
>{{ last ? '' : ' • ' }}
913
}
1014
</div>

src/messages.xlf

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
</context-group>
284284
<context-group purpose="location">
285285
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
286-
<context context-type="linenumber">204,208</context>
286+
<context context-type="linenumber">208,212</context>
287287
</context-group>
288288
<context-group purpose="location">
289289
<context context-type="sourcefile">src/app/modules/library/public-unit-type-selector/community-library-details.html</context>
@@ -5902,28 +5902,28 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
59025902
<source>Grade level:</source>
59035903
<context-group purpose="location">
59045904
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5905-
<context context-type="linenumber">24,27</context>
5905+
<context context-type="linenumber">28,31</context>
59065906
</context-group>
59075907
</trans-unit>
59085908
<trans-unit id="5226613065122074953" datatype="html">
59095909
<source>Duration: <x id="INTERPOLATION" equiv-text="{{ project.metadata.totalTime }}"/></source>
59105910
<context-group purpose="location">
59115911
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5912-
<context context-type="linenumber">38,39</context>
5912+
<context context-type="linenumber">42,43</context>
59135913
</context-group>
59145914
</trans-unit>
59155915
<trans-unit id="2099525903522028121" datatype="html">
59165916
<source>Unit ID: <x id="INTERPOLATION" equiv-text="{{ project.id }}"/></source>
59175917
<context-group purpose="location">
59185918
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5919-
<context context-type="linenumber">43,44</context>
5919+
<context context-type="linenumber">47,48</context>
59205920
</context-group>
59215921
</trans-unit>
59225922
<trans-unit id="7684343377021213931" datatype="html">
59235923
<source>This unit is from an old version of WISE that is no longer supported. Please find an alternate unit to use in the future or contact us for upgrade options.</source>
59245924
<context-group purpose="location">
59255925
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5926-
<context context-type="linenumber">64,67</context>
5926+
<context context-type="linenumber">68,71</context>
59275927
</context-group>
59285928
<context-group purpose="location">
59295929
<context context-type="sourcefile">src/app/teacher/teacher-run-list-item/teacher-run-list-item.component.html</context>
@@ -5934,7 +5934,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
59345934
<source>Legacy Unit</source>
59355935
<context-group purpose="location">
59365936
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5937-
<context context-type="linenumber">67,71</context>
5937+
<context context-type="linenumber">71,75</context>
59385938
</context-group>
59395939
<context-group purpose="location">
59405940
<context context-type="sourcefile">src/app/modules/library/library-project/library-project.component.html</context>
@@ -5945,84 +5945,84 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
59455945
<source> Note: This unit was created outside of the WISE platform. Teaching resources are linked below. </source>
59465946
<context-group purpose="location">
59475947
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5948-
<context context-type="linenumber">73,77</context>
5948+
<context context-type="linenumber">77,81</context>
59495949
</context-group>
59505950
</trans-unit>
59515951
<trans-unit id="4849120309760741886" datatype="html">
59525952
<source>Resources:</source>
59535953
<context-group purpose="location">
59545954
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5955-
<context context-type="linenumber">79,81</context>
5955+
<context context-type="linenumber">83,85</context>
59565956
</context-group>
59575957
</trans-unit>
59585958
<trans-unit id="5615583660036576020" datatype="html">
59595959
<source>Discipline:</source>
59605960
<context-group purpose="location">
59615961
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5962-
<context context-type="linenumber">92,94</context>
5962+
<context context-type="linenumber">96,98</context>
59635963
</context-group>
59645964
</trans-unit>
59655965
<trans-unit id="3217999400450328473" datatype="html">
59665966
<source>Features:</source>
59675967
<context-group purpose="location">
59685968
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5969-
<context context-type="linenumber">104,105</context>
5969+
<context context-type="linenumber">108,109</context>
59705970
</context-group>
59715971
</trans-unit>
59725972
<trans-unit id="1135894126071086314" datatype="html">
59735973
<source>Standards Addressed:</source>
59745974
<context-group purpose="location">
59755975
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5976-
<context context-type="linenumber">117,119</context>
5976+
<context context-type="linenumber">121,123</context>
59775977
</context-group>
59785978
</trans-unit>
59795979
<trans-unit id="8316240444829030702" datatype="html">
59805980
<source><x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;{{ project.uri }}&quot; target=&quot;_blank&quot;&gt;"/>This unit<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> is a copy of <x id="START_LINK_1" equiv-text="&lt;a href=&quot;{{ parentProject.uri }}&quot; target=&quot;_blank&quot;&gt;"/><x id="INTERPOLATION" equiv-text="{{ parentProject.title }}"/><x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> (used under <x id="START_LINK_2" equiv-text="&lt;a href=&quot;{{ licenseUrl }}&quot; target=&quot;_blank&quot;&gt;"/>CC BY-SA<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>).</source>
59815981
<context-group purpose="location">
59825982
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5983-
<context context-type="linenumber">160,162</context>
5983+
<context context-type="linenumber">164,166</context>
59845984
</context-group>
59855985
</trans-unit>
59865986
<trans-unit id="1086545303898503399" datatype="html">
59875987
<source><x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;{{ project.uri }}&quot; target=&quot;_blank&quot;&gt;"/>This unit<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> is a copy of <x id="START_LINK_1" equiv-text="&lt;a href=&quot;{{ parentProject.uri }}&quot; target=&quot;_blank&quot;&gt;"/><x id="INTERPOLATION" equiv-text="{{ parentProject.title }}"/><x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> by <x id="INTERPOLATION_1" equiv-text="{{ parentAuthorsString }}"/> (used under <x id="START_LINK_2" equiv-text="&lt;a href=&quot;{{ licenseUrl }}&quot; target=&quot;_blank&quot;&gt;"/>CC BY-SA<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>).</source>
59885988
<context-group purpose="location">
59895989
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5990-
<context context-type="linenumber">166,169</context>
5990+
<context context-type="linenumber">170,173</context>
59915991
</context-group>
59925992
</trans-unit>
59935993
<trans-unit id="6204036064480384422" datatype="html">
59945994
<source><x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;{{ project.uri }}&quot; target=&quot;_blank&quot;&gt;"/>This unit<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> is licensed under <x id="START_LINK_1" equiv-text="&lt;a href=&quot;{{ licenseUrl }}&quot; target=&quot;_blank&quot;&gt;"/>CC BY-SA<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/>. </source>
59955995
<context-group purpose="location">
59965996
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
5997-
<context context-type="linenumber">177,179</context>
5997+
<context context-type="linenumber">181,183</context>
59985998
</context-group>
59995999
</trans-unit>
60006000
<trans-unit id="322569619342487074" datatype="html">
60016001
<source><x id="START_LINK" ctype="x-a" equiv-text="&lt;a href=&quot;{{ project.uri }}&quot; target=&quot;_blank&quot;&gt;"/>This unit<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> is licensed under <x id="START_LINK_1" equiv-text="&lt;a href=&quot;{{ licenseUrl }}&quot; target=&quot;_blank&quot;&gt;"/>CC BY-SA<x id="CLOSE_LINK" ctype="x-a" equiv-text="&lt;/a&gt;"/> by <x id="INTERPOLATION" equiv-text="{{ authorsString }}"/>. </source>
60026002
<context-group purpose="location">
60036003
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6004-
<context context-type="linenumber">182,184</context>
6004+
<context context-type="linenumber">186,188</context>
60056005
</context-group>
60066006
</trans-unit>
60076007
<trans-unit id="7138375215763430051" datatype="html">
60086008
<source>View License</source>
60096009
<context-group purpose="location">
60106010
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6011-
<context context-type="linenumber">189,193</context>
6011+
<context context-type="linenumber">193,197</context>
60126012
</context-group>
60136013
</trans-unit>
60146014
<trans-unit id="5937251202465808296" datatype="html">
60156015
<source>More</source>
60166016
<context-group purpose="location">
60176017
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6018-
<context context-type="linenumber">197,203</context>
6018+
<context context-type="linenumber">201,207</context>
60196019
</context-group>
60206020
</trans-unit>
60216021
<trans-unit id="5537658691712388681" datatype="html">
60226022
<source>Use with Class</source>
60236023
<context-group purpose="location">
60246024
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6025-
<context context-type="linenumber">213,218</context>
6025+
<context context-type="linenumber">217,222</context>
60266026
</context-group>
60276027
<context-group purpose="location">
60286028
<context context-type="sourcefile">src/app/teacher/create-run-dialog/create-run-dialog.component.html</context>
@@ -6033,7 +6033,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
60336033
<source>Preview</source>
60346034
<context-group purpose="location">
60356035
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6036-
<context context-type="linenumber">221,223</context>
6036+
<context context-type="linenumber">225,227</context>
60376037
</context-group>
60386038
<context-group purpose="location">
60396039
<context context-type="sourcefile">src/app/teacher/run-menu/run-menu.component.html</context>
@@ -6068,7 +6068,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
60686068
<source>Unit Resources</source>
60696069
<context-group purpose="location">
60706070
<context context-type="sourcefile">src/app/modules/library/library-project-details/library-project-details.component.html</context>
6071-
<context context-type="linenumber">223,228</context>
6071+
<context context-type="linenumber">227,232</context>
60726072
</context-group>
60736073
</trans-unit>
60746074
<trans-unit id="3563179927132287246" datatype="html">

src/style/base/_base.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ strong, b, .strong {
66
font-weight: 500;
77
}
88

9-
a {
10-
text-decoration: underline;
11-
}
12-
139
figure {
1410
&.image {
1511
display: inline-block;

src/style/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
@tailwind components;
4747
@tailwind utilities;
4848

49+
a {
50+
text-decoration: underline;
51+
}
52+
4953
.app-styles {
5054
@include apps.apps-setup();
5155
}

0 commit comments

Comments
 (0)