PageRenderTime 56ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Templates/posts.htm

#
HTML | 45 lines | 45 code | 0 blank | 0 comment | 0 complexity | 3b1a1441d3a9a6dfbb113f97148b48b5 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. You haven't written any posts so far. To write a new post use the link in the right side menu.
  5. </div>
  6. {#else}
  7. <table id="Posts" class="beTable rounded" style="width:100%">
  8. <thead>
  9. <tr>
  10. <th width="70" style="text-align:center;">Published</th>
  11. <th width="auto">Title</th>
  12. <th width="120">Author</th>
  13. <th width="120">Categories</th>
  14. <th width="120">Tags</th>
  15. <th width="100">Created on</th>
  16. <th width="70"></th>
  17. <th width="70">&nbsp;</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {#foreach $T.d as p}
  22. <tr id="{$T.p.Id}" class="{#cycle values=['','alt']}">
  23. <td style="text-align:center;"><span class="published-{$T.p.IsPublished}"></span></td>
  24. <td><span>{$T.p.Title}</span></td>
  25. <td><span>{$T.p.Author}</span></td>
  26. <td><span>{$T.p.Categories}</span></td>
  27. <td><span>{$T.p.Tags}</span></td>
  28. <td><span class="comment_date">{$T.p.Date}</span><span class="comment_time">{$T.p.Time}</span></td>
  29. <td><span class="comments">{$T.p.Comments}</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.p.CanUserEdit}<li><a class="editAction" href="Add_entry.aspx?id={$T.p.Id}">Edit</a></li>{#/if}
  36. {#if $T.p.CanUserDelete}<li><a id="a-{$T.p.Id}" class="deleteAction" href="#" onclick="return DeletePost(this);">Delete</a></li>{#/if}
  37. </ul>
  38. </li>
  39. </ul>
  40. </td>
  41. </tr>
  42. {#/for}
  43. </tbody>
  44. </table>
  45. {#/if}