feat(editors): add editorial features aka the configurable edit link

This commit is contained in:
Benedikt Rötsch
2017-10-18 16:35:53 +02:00
committed by Benedikt Rötsch
parent bf50c66df4
commit 240e008a87
8 changed files with 97 additions and 47 deletions

View File

@@ -0,0 +1,13 @@
mixin editorialFeatures(entry)
if settings.editorialFeatures
.editorial-features
.editorial-features__item
a.editorial-features__text(
href=`https://app.contentful.com/spaces/${settings.space}/entries/${entry.sys.id}`
target='_blank'
rel='noopener'
) Edit in the web app
.editorial-features__hint-wrapper
svg.editorial-features__hint-icon
use(xlink:href='/icons/icons.svg#info')
.editorial-features__hint-message Edit this entry in our web app. You have to be logged in and have access to the connected space to use this feature.