Skip to content

Commit

Permalink
COM-20058: Add product feedback portal (ezsystems#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainGuittard committed Sep 21, 2018
1 parent 4feebab commit ab33ef3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
@@ -0,0 +1,25 @@
{% extends '@ezdesign/pagelayout.html.twig' %}

{% block main %}
<main class="white-background">
{% endblock %}

{% block content %}
<div class="container article">
<h1>{{ ez_content_name(content) }}</h1>

{% if not ez_is_field_empty(content, 'intro') %}
<div class="article-intro">
{{ ez_render_field(content, 'intro') }}
</div>
{% endif %}

<div class="article-body">
{{ ez_render_field(content, 'body') }}
</div>

</div>
<div class="iframe-container">
<iframe src="{{ productFeedbackIframeUrl }}" allowfullscreen="" frameBorder="0"></iframe>
</div>
{% endblock %}
5 changes: 5 additions & 0 deletions app/config/config_ezplatform_page.yml
Expand Up @@ -33,6 +33,10 @@ parameters:
community_metrics.location_id: 218
# community metrics decoded iframe URL
community_metrics.iframe_url: 'https://communitymetrics.ez.no/app/kibana#/dashboard/e8dca940-7d3a-11e7-a3ec-639c36c57655?embed=true&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-1y,mode:quick,to:now))'
# product feedback location ID
product_feedback.location_id: 362
# product feedback iframe URL
product_feedback.iframe_url: 'https://portal.productboard.com/vsjzmdg4emeihrpkxcfz6nrz'

# default png compression level used in image_variations.yml
images.default_png_compression_level: 9
Expand All @@ -59,3 +63,4 @@ twig:
blogLocationId: '%blog.location_id%'
bundlesListLocationId: '%bundles.location_id%'
communityMetricsIframeUrl: '%community_metrics.iframe_url%'
productFeedbackIframeUrl: '%product_feedback.iframe_url%'
4 changes: 4 additions & 0 deletions app/config/views.yml
Expand Up @@ -49,6 +49,10 @@ ezpublish:
template: "@ezdesign/full/community_metrics.html.twig"
match:
Id\Location: '%community_metrics.location_id%'
product_feedback:
template: "@ezdesign/full/product_feedback.html.twig"
match:
Id\Location: '%product_feedback.location_id%'
article:
template: "@ezdesign/full/article.html.twig"
match:
Expand Down

0 comments on commit ab33ef3

Please sign in to comment.