34 lines
733 B
HTML
34 lines
733 B
HTML
{{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}}
|