PageRenderTime 26ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Templates/pages.htm

#
HTML | 40 lines | 40 code | 0 blank | 0 comment | 0 complexity | 984f53d950f72100b9738532d11ed8fb MD5 | raw file
 1{#if $T.d.length == 0}
 2<div class="info">
 3    You haven't written any pages so far. To write a new page use the link in the right side menu.
 4</div>
 5{#else}
 6<table id="Pages" class="beTable rounded" style="width:100%">
 7    <thead>
 8        <tr>
 9            <th width="70" style="text-align:center;">Published</th>
10            <th width="auto">Title</th>
11            <th width="auto">Parent</th>
12            <th width="100" style="text-align:center;">Show In List</th>
13	        <th width="100">Created on</th>
14            <th width="70">&nbsp;</th>
15        </tr>
16    </thead>
17    <tbody>
18        {#foreach $T.d as p}
19        <tr id="{$T.p.Id}" class="{#cycle values=['','alt']}">
20            <td style="text-align:center;"><span class="published-{$T.p.IsPublished}"></span></td>
21            <td>{$T.p.Title}</td>
22            <td><span>{$T.p.ParentTitle}</span></td>
23            <td style="text-align:center;"><span class="published-{$T.p.ShowInList}"></span></td>
24            <td><span class="comment_date">{$T.p.Date}</span><span class="comment_time">{$T.p.Time}</span></td>
25            <td>
26                <ul class="rowTools">
27                    <li>
28                        <a class="toolsAction" href="#"><span class="">Tools</span></a>
29                        <ul class="rowToolsMenu">
30                            {#if $T.p.CanUserEdit}<li><a class="editAction" href="EditPage.aspx?id={$T.p.Id}">Edit</a></li>{#/if}
31                            {#if $T.p.HasChildren == false && $T.p.CanUserDelete}<li><a href="#" class="deleteAction" onclick="return DeletePage(this);">Delete</a></li>{#/if}
32                       </ul>
33                    </li>
34               </ul>
35            </td>
36        </tr>
37        {#/for}
38    </tbody>
39</table>
40{#/if}