activitiestemplates

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivityDetail

func ActivityDetail(a db.GetActivityRow, canEdit bool, flash, flashType string, users []db.User, auditLog []db.ListAuditLogForActivityRow, linkedRisks []db.Risk) templ.Component

── Activity detail ───────────────────────────────────────────────────────────

func ActivityForm

func ActivityForm(measures []db.Measure, users []db.User, a *db.GetActivityRow, preselectedMeasureID string, flash, flashType string, auditLog []db.ListAuditLogForActivityRow) templ.Component

── Activity form (new / edit) ────────────────────────────────────────────────

func ActivityList

func ActivityList(rows []db.FilterActivitiesRow, filter, kind, owner string, mine bool, flash, flashType string, hasMore bool, pageSize int32) templ.Component

── Activity list ─────────────────────────────────────────────────────────────

func ActivityRows

func ActivityRows(rows []db.FilterActivitiesRow, hasMore bool, nextOffset int32, filter, kind, owner string, mine bool) templ.Component

func ActivityTable

func ActivityTable(rows []db.FilterActivitiesRow, hasMore bool, pageSize int32, filter, kind, owner string, mine bool) templ.Component

func DateInputVal

func DateInputVal(t sql.NullTime) string

DateInputVal formats a nullable date as YYYY-MM-DD for <input type="date">.

func FormatDate

func FormatDate(t sql.NullTime) string

FormatDate formats a nullable date for display.

func FormatDateTime

func FormatDateTime(t sql.NullTime) string

FormatDateTime formats a nullable timestamp for display.

func IsOverdue

func IsOverdue(status string, dueDate sql.NullTime) bool

IsOverdue returns true if the activity should be shown as overdue.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL