PageRenderTime 15ms CodeModel.GetById 13ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/admin/list-post.mustache

http://github.com/TheOnly92/bloody.go
Mustache | 34 lines | 34 code | 0 blank | 0 comment | 0 complexity | 5f850961cfb206b2e7d8148fadf8de61 MD5 | raw file
 1<!--<p>[ <a href="/admin/post/new{{#markdown}}?markdown=1{{/markdown}}">New Post</a> <a href="/admin/preferences">Preferences</a> <a href="/admin/bloody/restart">Restart Bloody</a> ]</p>-->
 2<article class="module width_full">
 3	<header><h3>Posts</h3></header>
 4	<form method="post">
 5	<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; font-size: 13px;" class="tablesorter">
 6		<thead>
 7			<tr>
 8				<th style="width: 25px;"></th>
 9				<th>Created On</th>
10				<th>Title</th>
11				<th width="100px;">Actions</th>
12			</tr>
13		</thead>
14		{{#posts}}
15		<tr>
16			<td><input type="checkbox" name="posts[]" value="{{Id}}" /></td>
17			<td style="width: 130px">{{Date}}</td>
18			<td><a href="/admin/post/edit/{{Id}}">{{Title}}</a>{{#Draft}} - Draft{{/Draft}}</td>
19			<td><a href="/admin/post/edit/{{Id}}"><input type="image" src="/admin/images/icn_edit.png" title="Edit"></a><a href="/admin/post/del/{{Id}}"><input type="image" src="/admin/images/icn_trash.png" title="Trash"></a></td>
20		</tr>
21		{{/posts}}
22	</table>
23	<footer>
24		<div class="submit_link">
25			<select name="action">
26				<option value=""></option>
27				<option value="delete">Delete</option>
28				<option value="publish">Publish</option>
29			</select>
30			<input type="submit" value="Go!" />
31		</div>
32	</footer>
33	</form>
34</article>