PageRenderTime 47ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Templates/blogs.htm

#
HTML | 45 lines | 45 code | 0 blank | 0 comment | 0 complexity | 005d804002fcbe88cba9ba4be5851ca9 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. {#if $T.d.length == 0}
  2. <br />
  3. <div class="info">
  4. No blogs were found.
  5. </div>
  6. {#else}
  7. <table id="Blogs" class="beTable rounded" style="width:100%">
  8. <thead>
  9. <tr>
  10. <th width="70" style="text-align:center;">Active</th>
  11. <th width="70" style="text-align:center;">Primary</th>
  12. <th width="auto">Name</th>
  13. <th width="250">Host Name</th>
  14. <th width="120">Text Accepted Before Host Name</th>
  15. <th width="120">Virtual Path</th>
  16. <th width="120">Storage Container</th>
  17. <th width="70">&nbsp;</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {#foreach $T.d as b}
  22. <tr id="{$T.b.Id}" class="{#cycle values=['','alt']}">
  23. <td style="text-align:center;"><span class="published-{$T.b.IsActive}"></span></td>
  24. <td style="text-align:center;"><span class="published-{$T.b.IsPrimary}"></span></td>
  25. <td><a href='{$T.b.AbsoluteWebRoot}' target='_blank'><span>{$T.b.Name}</span></a></td>
  26. <td><span>{$T.b.Hostname}</span></td>
  27. <td style="text-align:center;"><span class="published-{$T.b.IsAnyTextBeforeHostnameAccepted}"></span></td>
  28. <td><span>{$T.b.VirtualPath}</span></td>
  29. <td><span>{$T.b.StorageContainerName}</span></td>
  30. <td>
  31. <ul class="rowTools">
  32. <li>
  33. <a class="toolsAction" href="#"><span class="">Tools</span></a>
  34. <ul class="rowToolsMenu">
  35. {#if $T.b.CanUserEdit}<li><a class="editAction" href="#" onclick="return EditBlog(this);">Edit</a></li>{#/if}
  36. {#if $T.b.CanUserDelete}<li><a class="deleteAction" href="#" onclick="return DeleteBlog(this);">Delete</a></li>{#/if}
  37. </ul>
  38. </li>
  39. </ul>
  40. </td>
  41. </tr>
  42. {#/for}
  43. </tbody>
  44. </table>
  45. {#/if}