Przeglądaj źródła

move isEmpty from context to content

yohei0125 3 lat temu
rodzic
commit
8e1fb5c61d

+ 0 - 1
packages/app/src/server/views/layout-growi/not_found.html

@@ -12,7 +12,6 @@
     id="growi-not-found-context"
     id="growi-not-found-context"
     data-is-not-found-permalink="{% if isNotFoundPermalink %}{{isNotFoundPermalink|json}}{% endif %}"
     data-is-not-found-permalink="{% if isNotFoundPermalink %}{{isNotFoundPermalink|json}}{% endif %}"
     data-page-id="{%if pageId %}{{pageId.toString()}}{% endif %}"
     data-page-id="{%if pageId %}{{pageId.toString()}}{% endif %}"
-    data-page-is-empty="{% if isEmpty %}{{ isEmpty }}{% endif %}"
   >
   >
   </div>
   </div>
   <div class="grw-container-convertible">
   <div class="grw-container-convertible">

+ 1 - 0
packages/app/src/server/views/widget/not_found_content.html

@@ -4,6 +4,7 @@
   data-page-grant="{{ grant }}"
   data-page-grant="{{ grant }}"
   data-page-grant-group="{{ grantedGroupId }}"
   data-page-grant-group="{{ grantedGroupId }}"
   data-page-grant-group-name="{{ grantedGroupName }}"
   data-page-grant-group-name="{{ grantedGroupName }}"
+  data-page-is-empty="{% if isEmpty %}{{ isEmpty }}{% endif %}"
   {% if templateTags %}
   {% if templateTags %}
     data-template-tags="{{ templateTags }}"
     data-template-tags="{{ templateTags }}"
   {% endif %}
   {% endif %}