Files
frontend/marko/page/logs/components/logs-list/index.marko
T
2018-09-13 21:15:47 +02:00

13 lines
563 B
Plaintext

import moment from "moment"
<content-list>
<content-list-item for(log in input.logs)
key=log.shortId
icon="L"
link=("/logs/" + log.id)
description=log.description
name=(log.title || (log.channelName + " - " + moment(log.date).format("MMMM D, YYYY")))
tags=[{kind: "Location", name: log.channelName}, {kind: "Event", name: log.event}]
enableAllTags=true
createdDate=log.date />
</content-list>