mirror of
https://github.com/writeas/writefreely
synced 2024-12-13 17:19:34 +01:00
a72ce2ef29
This enables admins to customize their landing / home page via the Admin dashboard -- including the text at the top of the page and the section below it. It keeps the current default text, falling back to it if the user hasn't overwritten it. Ref T565
35 lines
751 B
Cheetah
35 lines
751 B
Cheetah
{{define "pages"}}
|
|
{{template "header" .}}
|
|
|
|
<style>
|
|
table.classy.export .disabled, table.classy.export a {
|
|
text-transform: initial;
|
|
}
|
|
</style>
|
|
|
|
<div class="snug content-container">
|
|
{{template "admin-header" .}}
|
|
|
|
<h2 id="posts-header" style="display: flex; justify-content: space-between;">Pages</h2>
|
|
|
|
<table class="classy export" style="width:100%">
|
|
<tr>
|
|
<th>Page</th>
|
|
<th>Last Modified</th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><a href="/admin/page/landing">Home</a></td>
|
|
</tr>
|
|
{{range .Pages}}
|
|
<tr>
|
|
<td><a href="/admin/page/{{.ID}}">{{if .Title.Valid}}{{.Title.String}}{{else}}{{.ID}}{{end}}</a></td>
|
|
<td style="text-align:right">{{.UpdatedFriendly}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{template "footer" .}}
|
|
{{end}}
|