Chocobozzz/PeerTube

View on GitHub
server/core/assets/email-templates/common/mixins.pug

Summary

Maintainability
Test Coverage
mixin channel(channel)
  - var handle = `${channel.name}@${channel.host}`
  | #[a(href=`${WEBSERVER.URL}/video-channels/${handle}` title=handle) #{channel.displayName}]

mixin account(account)
  - var handle = `${account.name}@${account.host}`
  | #[a(href=`${WEBSERVER.URL}/accounts/${handle}` title=handle) #{account.displayName}]