Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "core/templating-functions"

Index

Variables

Const ALTERNATE_STATIC_ROOT_URL

ALTERNATE_STATIC_ROOT_URL: string = config.ROOT_URL

Const DASHBOARD_PAGES

DASHBOARD_PAGES: string[] = ["feed", "entries", "posts", "scores", "invite", "settings", "password", "entry-import"]

Functions

buildUrl

  • buildUrl(model: any, type: any, page?: any, options?: any): string
  • Parameters

    • model: any
    • type: any
    • Default value page: any = null
    • Default value options: any = {}

    Returns string

isPast

  • isPast(time: any): boolean

pictureUrl

  • pictureUrl(picturePath: any, model: any): string

staticUrl

  • staticUrl(path: any): string

wasEdited

  • wasEdited(model: any): boolean
  • Tells whether a model has been edited > 1 hour after its creation

    Parameters

    • model: any

      Any model with timestamps

    Returns boolean

Generated using TypeDoc