Fix courses visibility toggler button (#257)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
cf88e95782
commit
2af89479be
16 changed files with 68 additions and 24 deletions
|
@ -78,7 +78,9 @@
|
|||
{{ end }}
|
||||
{{ if gt (len .takenCourses.courses ) 2 }}
|
||||
<button type="button" class="btn btn-link show-more-btn pt-0 {{ if .takenCourses.showGrades }}ml-1{{ else }}ml-2{{ end }}"
|
||||
onclick="showMoreCourses(this);">{{ i18n "see_more"}}</button>
|
||||
onclick="toggleCourseVisibility(this);" id="show-more-btn">{{ i18n "show_more"}}</button>
|
||||
<button type="button" class="btn btn-link show-more-btn hidden pt-0 {{ if .takenCourses.showGrades }}ml-1{{ else }}ml-2{{ end }}"
|
||||
onclick="toggleCourseVisibility(this);" id="show-less-btn">{{ i18n "show_less"}}</button>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue