append variables
-
var activities = [
{
avatar: {
emoji: '🔍',
size: 'xl'
},
body: 'Anthony Hopkins Followed Massachusetts Institute of Technology',
time: 'Just Now',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '📌',
size: 'xl'
},
body: 'Anthony Hopkins Save a Life Event',
time: 'Yesterday',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '🏷️',
size: 'xl'
},
body: 'Rowan Atkinson Tagged Anthony Hopkins in a live video',
time: 'December 1, 8:00 PM',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '💬',
size: 'xl'
},
body: 'Robert Downey mention Anthony Hopkins in a comment',
time: 'November 27, 12:00 AM',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '😂',
size: 'xl'
},
body: 'Anthony Hopkins reacted to a comment of Anna Karinina',
time: 'November 20, 8:00 Am',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '🎁',
size: 'xl'
},
body: 'Jennifer Kent Congratulated Anthony Hopkins',
time: 'November 13, 5:00 Am',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '🏷️',
size: 'xl'
},
body: 'California Institute of Technology tagged Anthony Hopkins in a post.',
time: 'November 8, 5:00 PM',
className: 'border-bottom-0'
},
{
avatar: {
emoji: '📋️',
size: 'xl'
},
body: 'Anthony Hopkins joined Victory day cultural Program with Tony Stark',
time: 'November 01, 11:30 AM',
className: 'border-bottom-0'
}
]
mixin ActivityList(start, end)
each activity in activities.slice(start, end)
+Notification(activity).rounded-0.border-x-0.border.border-300
+Notification({
avatar: {
emoji: '📅️',
size: 'xl'
},
body: 'Massachusetts Institute of Technology invited Anthony Hopkin to an event',
time: 'October 28, 12:00 PM'
}).border-x-0.border-bottom-0.border-300.rounded-top-0
mixin Activity(config)
- var config = Object.assign({more: false, start: 0}, config)
.card&attributes(attributes)
.card-header.bg-body-tertiary(class=`${config.more ? 'd-flex justify-content-between' : ''}`)
h5.mb-0 Activity log
if(config.more)
a.font-sans-serif(href=`${CWD}${paths['activity-log']}`) All logs
.card-body.fs-10.p-0
+ActivityList(config.start)