Files
the-example-app-nodejs/views/mixins/_editorialFeatures.pug
2017-11-13 21:04:55 +01:00

19 lines
766 B
Plaintext

include _entryState
mixin editorialFeatures(entry)
if settings.editorialFeatures
.editorial-features
if currentApi.id === 'cpa' && (entry.draft || entry.pendingChanges)
.editorial-features__item
+entryState(entry)
.editorial-features__item
a.editorial-features__text(
href=`https://app.contentful.com/spaces/${settings.spaceId}/entries/${entry.sys.id}`
target='_blank'
rel='noopener'
) #{translate('editInTheWebAppLabel', currentLocale.code)}
.editorial-features__hint-wrapper
svg.editorial-features__hint-icon
use(xlink:href='/icons/icons.svg#info')
.editorial-features__hint-message #{translate('editorialFeaturesHint', currentLocale.code)}