{#if $T.d.length == 0}
<br />
<div class="info">
    No blogs were found.
</div>
{#else}
<table id="Blogs" class="beTable rounded" style="width:100%">
    <thead>
        <tr>
            <th width="70" style="text-align:center;">Active</th>
            <th width="70" style="text-align:center;">Primary</th>
            <th width="auto">Name</th>
            <th width="250">Host Name</th>
            <th width="120">Text Accepted Before Host Name</th>
            <th width="120">Virtual Path</th>
            <th width="120">Storage Container</th>
	        <th width="70">&nbsp;</th>
        </tr>
    </thead>
    <tbody>
        {#foreach $T.d as b}
        <tr id="{$T.b.Id}" class="{#cycle values=['','alt']}">
            <td style="text-align:center;"><span class="published-{$T.b.IsActive}"></span></td>
            <td style="text-align:center;"><span class="published-{$T.b.IsPrimary}"></span></td>
            <td><a href='{$T.b.AbsoluteWebRoot}' target='_blank'><span>{$T.b.Name}</span></a></td>
            <td><span>{$T.b.Hostname}</span></td>
            <td style="text-align:center;"><span class="published-{$T.b.IsAnyTextBeforeHostnameAccepted}"></span></td>
            <td><span>{$T.b.VirtualPath}</span></td>
            <td><span>{$T.b.StorageContainerName}</span></td>
            <td>
                <ul class="rowTools">
                    <li>
                        <a class="toolsAction" href="#"><span class="">Tools</span></a>
                        <ul class="rowToolsMenu">
                            {#if $T.b.CanUserEdit}<li><a class="editAction" href="#" onclick="return EditBlog(this);">Edit</a></li>{#/if}
                            {#if $T.b.CanUserDelete}<li><a class="deleteAction" href="#" onclick="return DeleteBlog(this);">Delete</a></li>{#/if}
                       </ul>
                    </li>
               </ul>
            </td>
        </tr>
        {#/for}
    </tbody>
</table>
{#/if}