-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmixins.pug
25 lines (25 loc) · 1.18 KB
/
mixins.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mixin entry(entry, moment)
.box.dl-entry(id=entry.created_at.getTime())
article.media
.media-left
.content
.dl-entry-result.title.is-1.has-text-centered #{entry.result}
.has-text-centered: .tag.is-info.is-monospace #{entry.roll}
.media-content
.content
if entry.message && entry.message.length
blockquote.dl-entry-message.has-text-weight-semibold #{entry.message}
else
blockquote.dl-entry-message.dl-entry-message-blank.has-text-grey-light No description.
div.is-size-7.has-text-grey.has-text-right
// span #{entry.created_at.toLocaleDateString()} #{entry.created_at.toLocaleTimeString('en-US', { hour12: true })}
span.dl-log-name
if entry.name && entry.name.length
a(href=`/${entry.log_id}`).has-text-grey: strong #{entry.name}
else
a(href=`/${entry.log_id}`).has-text-grey: em anonymous log entry
| –
span #{moment(entry.created_at).fromNow()}
a(href=`/${entry.log_id}#${entry.created_at.getTime()}`).has-text-grey
span.icon
i.far.fa-clock