<div id="content-main" class="content-main page-list"
  data-path="{{ encodeURI(path) }}"
  data-current-user="{% if user %}{{ user._id.toString() }}{% endif %}"
  data-page-grant="{{ grant }}"
  data-page-grant-group="{{ grantedGroupId }}"
  data-page-grant-group-name="{{ grantedGroupName }}"
  data-page-is-empty="{{ isEmpty }}"
  {% if templateTags %}
    data-template-tags="{{ templateTags }}"
  {% endif %}
  >
  <div id="display-switcher"></div>
  <div id="not-found-page"></div>
  <div class="tab-content">


    {# TODO: should be removed and transplanted to PageContainer.initStateMarkdown ------ from here ------ #}

    {% if getConfig('crowi', 'customize:isEnabledAttachTitleHeader') %}
    {% if template %}
    <script type="text/template" id="raw-text-original">{{ attachTitleHeader(path | path2name | preventXss) }}&NewLine;{{ template }}</script>
    {% else %}
    <script type="text/template" id="raw-text-original">{{ attachTitleHeader(path | path2name | preventXss) }}</script>
    {% endif %}
    {% else %}
    {% if template %}
    <script type="text/template" id="raw-text-original">{{ template }}</script>
    {% endif %}
    {% endif %}

    {# TODO: should be removed and transplanted to PageContainer.initStateMarkdown ------ to here ------ #}
  </div>

  <div id="grw-page-status-alert-container"></div>
</div>
