Skip to content

Commit

Permalink
Date is now clickable, if lecture doesn't have a name (#1319)
Browse files Browse the repository at this point in the history
* Date is now clickable, if lecture doesn't have a name

* Updated date to be normal size if in list view
  • Loading branch information
SebiWrn committed May 7, 2024
1 parent 3eb10eb commit a80cdd3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/template/home.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,17 @@

</a>
</template>
<template x-if="vod.HasName()">
<span class="date text-sm"
x-text="vod.FriendlyDateStart()"></span>
</template>

<template x-if="!vod.HasName()">
<a :class="isListView() ? 'title overflow-hidden' : ''" :href="course.WatchURL(vod.ID)">
<span class="date" :class="isListView() ? '' : 'text-sm'"
x-text="vod.FriendlyDateStart()"></span>
</a>
</template>
</div>
<button type="button" @click="vod.Dropdown.toggle()"
class="md:group-hover:opacity-100 md:opacity-0 px-2">
Expand Down

0 comments on commit a80cdd3

Please sign in to comment.