Skip to content

Commit

Permalink
1321 add real last lecture date to courses under my courses and renam…
Browse files Browse the repository at this point in the history
…e last lecture to next lecture (#1322)

* fix #1321: correct the date of "next lecture" on the home page; also add date of the last recording

* minor change to format
  • Loading branch information
YiranDuan721 authored Jan 29, 2024
1 parent e9e4108 commit 6fbb218
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions web/template/home.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@
: 'No upcoming lecture.'"></span>
<a x-cloak x-show="course.LastRecording.ID !== 0" :href="course.LastRecordingURL()">
<i class="fa-solid fa-square-up-right"></i>
<span class="hover:underline">Most recent lecture</span>
<span class="hover:underline"
x-text="`Most recent lecture: ${course.LastRecording.FriendlyDateStart()}`"></span>
</a>
</div>
</section>
Expand Down Expand Up @@ -297,12 +298,13 @@
x-text="course.Name">
</a>
<div class="links">
<span x-text="course.LastRecording.ID !== 0
? `Next lecture: ${course.LastRecording.FriendlyDateStart()}`
<span x-text="course.NextLecture.ID !== 0
? `Next lecture: ${course.NextLecture.FriendlyDateStart()}`
: 'No upcoming lecture.'"></span>
<a x-cloak x-show="course.LastRecording.ID !== 0" :href="course.LastRecordingURL()">
<i class="fa-solid fa-square-up-right"></i>
<span class="hover:underline">Most recent lecture</span>
<span class="hover:underline"
x-text="`Most recent lecture: ${course.LastRecording.FriendlyDateStart()}`"></span>
</a>
</div>
</section>
Expand Down Expand Up @@ -726,12 +728,13 @@
x-text="course.Name">
</a>
<div class="links">
<span x-text="course.LastRecording.ID !== 0
? `Next lecture: ${course.LastRecording.FriendlyDateStart()}`
<span x-text="course.NextLecture.ID !== 0
? `Next lecture: ${course.NextLecture.FriendlyDateStart()}`
: 'No upcoming lecture.'"></span>
<a x-cloak x-show="course.LastRecording.ID !== 0" :href="course.LastRecordingURL()">
<i class="fa-solid fa-square-up-right"></i>
<span class="hover:underline">Most recent lecture</span>
<span class="hover:underline"
x-text="`Most recent lecture: ${course.LastRecording.FriendlyDateStart()}`"></span>
</a>
</div>
</section>
Expand Down

0 comments on commit 6fbb218

Please sign in to comment.