mirror of
https://github.com/glanceapp/glance.git
synced 2025-02-17 19:00:59 +01:00
- Calendar template fixed
- Bug with ics events, from another years fixed
This commit is contained in:
parent
2eb1821941
commit
4cb8b0f4f4
@ -1,6 +1,6 @@
|
||||
{{ template "widget-base.html" . }}
|
||||
|
||||
{{ define "widget-content" }} {{ define "widget-content" }}
|
||||
{{ define "widget-content" }}
|
||||
<div class="widget-small-content-bounds">
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="color-highlight size-h1">{{ .Calendar.CurrentMonthName }}</div>
|
||||
@ -30,5 +30,7 @@
|
||||
{{ end }}
|
||||
<span>{{ .Day }}</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
@ -53,7 +53,7 @@ func NewCalendar(now time.Time, icsurl string) *Calendar {
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
if startAt.Day() == day && startAt.Month() == month {
|
||||
if startAt.Day() == day && startAt.Month() == month && startAt.Year() == year {
|
||||
dayEvent.StartedDay = startAt
|
||||
dayEvent.EventHover = event.GetProperty("SUMMARY").Value
|
||||
days[i].IsEvent = true
|
||||
|
Loading…
Reference in New Issue
Block a user