From 1ef4d1c51ac99a724df28a093141d156de8e3975 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Thu, 14 Dec 2017 12:46:28 +0100 Subject: [PATCH] fix: Add edit in web app link for course list --- views/courses.pug | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/views/courses.pug b/views/courses.pug index cfb44ca..f9a612e 100644 --- a/views/courses.pug +++ b/views/courses.pug @@ -21,6 +21,19 @@ block content section.layout-sidebar__content .courses h1= title + if settings.editorialFeatures + .editorial-features + .editorial-features__item + a.editorial-features__text( + href=`https://app.contentful.com/spaces/${settings.spaceId}/entries/?contentTypeId=course` + 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)} + .grid-list each course in courses .grid-list__item