first commit
This commit is contained in:
33
templates/list.html
Normal file
33
templates/list.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{{define "title"}}pastes — paste.ridgwaysystems.org{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<div class="page-header">
|
||||
<h1>pastes</h1>
|
||||
<p class="page-desc">Public code snippets.</p>
|
||||
</div>
|
||||
|
||||
{{if .Pastes}}
|
||||
<table class="admin-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>title</th>
|
||||
<th>language</th>
|
||||
<th>created</th>
|
||||
<th>expires</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Pastes}}
|
||||
<tr>
|
||||
<td><a href="/{{.ID}}">{{.Title}}</a></td>
|
||||
<td><span class="lang-badge">{{.Language}}</span></td>
|
||||
<td class="post-date">{{formatDate .CreatedAt}}</td>
|
||||
<td class="post-date">{{expiryStr .}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{else}}
|
||||
<p class="empty-state">No public pastes yet.</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user