<decorators defaultdir="/decorators">

    <!-- No decorator -->
    <decorator name="none">
        <url-pattern>/spaces/rss.vm</url-pattern>
        <url-pattern>/spaces/rss-blogs.vm</url-pattern>
        <url-pattern>/spaces/rss.action</url-pattern>
        <url-pattern>/spaces/blogrss.action</url-pattern>
        <url-pattern>/spaces/commentrss.action</url-pattern>
        <url-pattern>/globalrss.action</url-pattern>
        <!-- in case some appservers decide they /can/ decorate 404 pages -->
        <url-pattern>/fourohfour.action</url-pattern>
        <url-pattern>/styles/*</url-pattern>
        <url-pattern>/bootstrap/*</url-pattern>
        <url-pattern>/checklist.vm</url-pattern>
        <url-pattern>/plugins/*</url-pattern>
        <url-pattern>/rest/*</url-pattern>
        <url-pattern>/pages/rendercontent.action*</url-pattern>

        <!-- TODO Move JSON-returning page actions to a separate URL path (eg /pages/*.json) -->
        <url-pattern>/pages/children.action*</url-pattern>
        <url-pattern>/pages/summary.action*</url-pattern>
        <url-pattern>/pages/movepage.action*</url-pattern>
        <url-pattern>/pages/revertpageorder.action*</url-pattern>
        <url-pattern>/pages/setpageorder.action*</url-pattern>

        <!-- AJAX-y -->
        <url-pattern>/admin/reindexstatus.action</url-pattern>
        <url-pattern>/labels/editcontentlabels.action</url-pattern>
        <url-pattern>/labels/addlabeltoentity.action</url-pattern>
        <url-pattern>/labels/addlabelresponse*</url-pattern>
        <url-pattern>/labels/removelabelfromentity*</url-pattern>
        <url-pattern>/labels/labels-ajax*</url-pattern>
        <url-pattern>/labels/autocompletelabelslist*</url-pattern>
        <url-pattern>/labels/labels-autocomplete-lists*</url-pattern>
        <url-pattern>/labels/suggestedlabels*</url-pattern>
        <url-pattern>/ajax/*</url-pattern>
        <url-pattern>/json/*</url-pattern>
        <url-pattern>/xml/*</url-pattern>
        <url-pattern>/admin/didyoumean/index-progress.action</url-pattern>
        <url-pattern>/users/userinfopopup.action*</url-pattern>
    </decorator>

    <decorator name="setup" page="setup.vmd">
        <url-pattern>/setup/*</url-pattern>
    </decorator>

    <decorator name="main" page="main.vmd">
        <pattern>*</pattern>
    </decorator>

    <decorator name="admin" page="admin.vmd">
        <pattern>/admin/*</pattern>
    </decorator>    

	<!-- CONF-9959 - a minimal decorator for pages when confluence has failed to upgrade so can't rely on
		 having decorators and settings and things like that in the database. -->
    <decorator name="fixonly" page="fixonly.vmd">
        <pattern>/fixonly/*</pattern>
    </decorator>

    <decorator name="printable" page="printable.vmd"/>

    <decorator name="helppopup" page="helppopup.vmd">
        <pattern>/pages/help/*</pattern>
        <pattern>/spaces/permissions/help*</pattern>
        <pattern>/admin/permissions/help*</pattern>
    </decorator>

    <decorator name="popup" page="popup.vmd">
        <pattern>/users/viewuserhistory.*</pattern>
        <pattern>/users/insertlink*</pattern>
        <pattern>/users/uploadfiletodraft.*</pattern>
        <pattern>/users/*insertimage*</pattern>
        <pattern>/users/*pagepicker.*</pattern>
        <pattern>/pages/viewpagesrc.*</pattern>
        <pattern>/colourpicker.*</pattern>
        <pattern>/*userpicker.*</pattern>
        <pattern>/*grouppicker.*</pattern>
        <pattern>/spaces/dosearchgroups*</pattern>
        <pattern>/spaces/viewpermissionsguide*</pattern>
    </decorator>

    <decorator name="macrolibraries" page="macrolibraries.vmd"/>
    <decorator name="plugins" page="plugins.vmd"/>
    <decorator name="menupanel" page="panels/menupanel.vmd"/>
    <decorator name="spaceadminpanel" page="panels/spaceadminpanel.vmd"/>
    <decorator name="spacecontentpanel" page="panels/spacecontentpanel.vmd"/>
    <decorator name="warning" page="panels/warning.vmd"/>
    <decorator name="info" page="panels/info.vmd"/>
    <decorator name="alert" page="panels/alert.vmd"/>
    <decorator name="confirm" page="panels/confirm.vmd"/>
    <decorator name="basicpanel" page="panels/basicpanel.vmd"/>
    <decorator name="blogpost2" page="components/blogpost.vmd"/>
    <decorator name="pagecomments" page="components/pagecomments.vmd"/>
    <decorator name="blogcomments" page="components/blogcomments.vmd"/>
    <decorator name="sharedcomments" page="components/sharedcomments.vmd"/>
    <decorator name="comments" page="components/comments.vmd"/>
    <decorator name="search-results" page="components/search-results.vmd"/>
    <decorator name="page" page="page.vmd"/>
    <decorator name="blogpost" page="blogpost.vmd"/>
    <decorator name="mail" page="mail.vmd"/>
    <decorator name="space" page="space.vmd"/>
    <decorator name="search" page="search.vmd"/>
    <decorator name="global" page="global.vmd"/>
    <decorator name="profile" page="profile.vmd"/>
    <decorator name="labels" page="labels.vmd"/>
    <decorator name="root" page="root.vmd"/>
    <decorator name="form-aui" page="form-aui.vmd"/>

    <!-- cross-product decorators provided for plugins -->
    <decorator name="atl.general" page="main.vmd"/>
    <decorator name="atl.admin" page="admin.vmd"/>
</decorators>
