<mt:setvarblock name="page_title"><__trans phrase="Manage [_1]" params="<mt:if name="scope_type" eq="system"><__trans phrase="Websites"><mt:else><__trans phrase="Blogs"></mt:if>"></mt:setvarblock>
<mt:setvarblock name="system_msg">
    <mt:if name="saved_deleted">
        <mt:if name="object_type" eq="website">
            <mtapp:statusmsg
                id="saved-deleted"
                class="success">
                <__trans phrase="You have successfully deleted the website from the Movable Type system.">
            </mtapp:statusmsg>
        <mt:else>
            <mtapp:statusmsg
                id="saved-deleted"
                class="success">
                <__trans phrase="You have successfully deleted the blog from the website.">
            </mtapp:statusmsg>
        </mt:if>
    </mt:if>
    <mt:if name="refreshed">
        <mtapp:statusmsg
            id="refreshed"
            class="success">
            <__trans phrase="You have successfully refreshed your templates.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="moved">
        <mtapp:statusmsg
            id="moved"
            class="success">
            <__trans phrase="You have successfully moved selected blogs to another website.">
        </mtapp:statusmsg>
        <mtapp:statusmsg
            id="moved-warning"
            class="alert">
            <__trans phrase="Warning: You need to copy uploaded assets to new locations manually. You should consider maintaining copies of uploaded assets in their original locations to avoid broken links.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="not_refreshed">
        <mtapp:statusmsg
            id="not-refreshed"
            class="error">
            <__trans phrase="Some templates were not refreshed.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="not_deleted">
        <mt:if name="object_type" eq="website">
            <mtapp:statusmsg
                id="not-deleted"
                class="error">
                <__trans phrase="Some websites were not deleted. You need to delete blogs under the website first.">
            </mtapp:statusmsg>
        </mt:if>
    </mt:if>
</mt:setvarblock>
<mt:setvarblock name="content_header">
    <mt:if name="object_type" eq="website">
        <mt:if name="can_create_website">
        <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=website" class="icon-left icon-create"><__trans phrase="Create Website"></a></p>
        </mt:if>
    <mt:else>
        <mt:if name="can_create_blog">
        <p><a href="<mt:var name="script_url">?__mode=view&amp;_type=blog&amp;blog_id=<mt:var name="blog_id">" class="icon-left icon-create"><__trans phrase="Create Blog"></a></p>
        </mt:if>
    </mt:if>
</mt:setvarblock>
<mt:setvarblock name="related_content">
  <mt:if name="object_type" eq="website">
    <$mtapp:pageactions from="list_website"$>
  <mt:else>
    <$mtapp:pageactions from="list_blog"$>
  </mt:if>
</mt:setvarblock>
<mt:setvarblock name="html_body_footer">
    <$mt:include name="include/display_options.tmpl"$>
</mt:setvarblock>
<mt:setvarblock name="html_head" append="1">
    <script type="text/javascript">
    /* <![CDATA[ */
    var tableSelect;
    function init()
    {
        // setup
        tableSelect = new TC.TableSelect( "blog-listing-table" );
        tableSelect.rowSelect = true;
    }
    /* ]]> */
    </script> 
</mt:setvarblock>
<$mt:include name="include/header.tmpl"$>
<$mt:include name="include/blog_table.tmpl"$>
<mt:setvarblock name="jq_js_include" append="1">
    init();
    jQuery.mtCheckbox();
</mt:setvarblock>
<$mt:include name="include/footer.tmpl"$>
