Adjust dashboard calendar task text to field-first format
This commit is contained in:
@@ -39,13 +39,13 @@ func buildCalendar(plans []Plan, startMonth, startDay, daysPerMonth, spanMonths
|
||||
tasksByKey[fmt.Sprintf("%d-%d", p.StartMonth, p.StartDay)] = append(tasksByKey[fmt.Sprintf("%d-%d", p.StartMonth, p.StartDay)], Task{
|
||||
Type: "Aussaat",
|
||||
Field: field,
|
||||
Message: fmt.Sprintf("%s auf %s", p.CropName, field),
|
||||
Message: fmt.Sprintf("Aussaat %s", p.CropName),
|
||||
SortOrder: 1,
|
||||
})
|
||||
tasksByKey[fmt.Sprintf("%d-%d", p.HarvestMonth, p.HarvestDay)] = append(tasksByKey[fmt.Sprintf("%d-%d", p.HarvestMonth, p.HarvestDay)], Task{
|
||||
Type: "Ernte",
|
||||
Field: field,
|
||||
Message: fmt.Sprintf("%s auf %s", p.CropName, field),
|
||||
Message: fmt.Sprintf("Ernte %s", p.CropName),
|
||||
SortOrder: 2,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
{{if .Tasks}}
|
||||
<ul class="task-sublist">
|
||||
{{range .Tasks}}
|
||||
<li>{{.Type}}: {{.Message}}</li>
|
||||
<li>{{.Field}}: {{.Message}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{else}}
|
||||
|
||||
Reference in New Issue
Block a user