Skip to content

Commit

Permalink
[EZP-31673] RichText should use new http-cache 2.0 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizhippo authored Jun 30, 2020
1 parent d925d70 commit c2d7ff4
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"twig/twig": "^3.0",
"ezsystems/ezplatform-kernel": "~1.0.0@dev",
"ezsystems/ezplatform-content-forms": "~1.0.0@dev",
"ezsystems/ezplatform-rest": "~1.0.0@dev"
"ezsystems/ezplatform-rest": "~1.0.0@dev",
"ezsystems/ezplatform-http-cache": "^2.0@dev"
},
"require-dev": {
"ezsystems/doctrine-dbal-schema": "^1.0@dev",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endif %}

<div {% if embedParams.anchor is defined %}id="{{ embedParams.anchor }}"{% endif %} class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}"{{ data_attributes_str|raw }}>
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
{{ ez_http_tag_relation_ids([embedParams.id]) }}
{{
render(
controller(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
{{ ez_http_tag_relation_ids([embedParams.id]) }}
Content #{{ embedParams.id }}: You do not have permission to view this Content
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% set params = params|merge( { "class": embedParams.class } ) %}
{% endif %}

{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
{{ ez_http_tag_relation_ids([embedParams.id]) }}
{{
render(
controller(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ fos_httpcache_tag('relation-' ~ embedParams.id) }}
{{ ez_http_tag_relation_ids([embedParams.id]) }}
[[ Content #{{ embedParams.id }}: You do not have permission to view this Content ]]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endif %}

<div {% if embedParams.anchor is defined %}id="{{ embedParams.anchor }}"{% endif %} class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
{{ ez_http_tag_relation_location_ids([embedParams.id]) }}
{{
render(
controller(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="{% if embedParams.align is defined %}align-{{ embedParams.align }}{% endif %}{% if embedParams.class is defined %} {{ embedParams.class }}{% endif %}">
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
{{ ez_http_tag_relation_location_ids([embedParams.id]) }}
Location #{{ embedParams.id }}: You do not have permission to view this Location
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% set params = params|merge( { "class": embedParams.class } ) %}
{% endif %}

{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
{{ ez_http_tag_relation_location_ids([embedParams.id]) }}
{{
render(
controller(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ fos_httpcache_tag('relation-location-' ~ embedParams.id) }}
{{ ez_http_tag_relation_location_ids([embedParams.id]) }}
[[ Location #{{ embedParams.id }}: You do not have permission to view this Location ]]

0 comments on commit c2d7ff4

Please sign in to comment.