diff options
Diffstat (limited to 'internal/web/templates/dashboard')
| -rw-r--r-- | internal/web/templates/dashboard/confirm.html | 4 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/design.html | 2 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/images.html | 8 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/page_form.html | 2 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/pages.html | 7 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/password.html | 2 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/post_form.html | 2 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/posts.html | 5 | ||||
| -rw-r--r-- | internal/web/templates/dashboard/settings.html | 2 |
9 files changed, 21 insertions, 13 deletions
diff --git a/internal/web/templates/dashboard/confirm.html b/internal/web/templates/dashboard/confirm.html index eefa1da..8dd0b3a 100644 --- a/internal/web/templates/dashboard/confirm.html +++ b/internal/web/templates/dashboard/confirm.html @@ -9,8 +9,8 @@ <p>You are about to permanently delete {{.Data.what}}. This cannot be undone.</p> <form method="post" action="{{.Data.action}}"> <input type="hidden" name="_csrf" value="{{.CSRF}}"> - <button type="submit" class="danger">Yes, delete</button> - <a class="btn secondary" href="{{.Data.back}}">Cancel</a> + <p class="actionrow"><button type="submit" class="danger">Yes, delete</button> + <a class="btn secondary" href="{{.Data.back}}">Cancel</a></p> </form> {{end}} </div> diff --git a/internal/web/templates/dashboard/design.html b/internal/web/templates/dashboard/design.html index 27ce3c7..09ea1fe 100644 --- a/internal/web/templates/dashboard/design.html +++ b/internal/web/templates/dashboard/design.html @@ -82,6 +82,6 @@ </div> </div> -<p><button type="submit">Save design</button></p> +<p class="actionrow"><button type="submit">Save design</button></p> </form> {{end}} diff --git a/internal/web/templates/dashboard/images.html b/internal/web/templates/dashboard/images.html index 5383e73..b44289e 100644 --- a/internal/web/templates/dashboard/images.html +++ b/internal/web/templates/dashboard/images.html @@ -1,14 +1,16 @@ {{define "title"}}Images · {{.Blog.Title}}{{end}} {{define "content"}} -<h1>Images</h1> +<div class="pagehead"> + <h1>Images</h1> + <p class="lead muted">Images are stored with your blog. Put one in a post with <em>Insert image</em> in the editor, or copy its line from below.</p> +</div> <div class="card"> <form method="post" action="/b/{{.Blog.Subdomain}}/images/upload" enctype="multipart/form-data"> <input type="hidden" name="_csrf" value="{{.CSRF}}"> <label>Upload an image <span class="muted">(PNG, JPEG, GIF or WebP)</span><br><input type="file" name="file" accept="image/*" required></label> - <button type="submit">Upload</button> + <p class="actionrow"><button type="submit">Upload</button></p> </form> </div> -<p class="muted">To put an image in a post, copy its Markdown line into the post text.</p> <div class="gallery"> {{range .Data.images}} <div class="card thumb"> diff --git a/internal/web/templates/dashboard/page_form.html b/internal/web/templates/dashboard/page_form.html index df94c7e..38aac71 100644 --- a/internal/web/templates/dashboard/page_form.html +++ b/internal/web/templates/dashboard/page_form.html @@ -10,7 +10,7 @@ <label>Intro text <span class="muted">(Markdown, shown above the posts; optional)</span><br> <textarea name="intro" rows="8">{{.Data.page.IntroMD}}</textarea></label> <label class="check"><input type="checkbox" name="show_in_nav"{{if .Data.page.ShowInNav}} checked{{end}}> Show in menu</label> - <p> + <p class="actionrow"> <button type="submit">Save</button> {{if .Data.page.ID}}<a class="btn secondary" href="{{.BlogURL}}{{if .Data.page.IsHome}}/{{else}}/{{.Data.page.Slug}}{{end}}" target="_blank">View page ↗</a>{{end}} <a href="/b/{{.Blog.Subdomain}}/pages">Back to pages</a> diff --git a/internal/web/templates/dashboard/pages.html b/internal/web/templates/dashboard/pages.html index 6703e7f..5e9aca5 100644 --- a/internal/web/templates/dashboard/pages.html +++ b/internal/web/templates/dashboard/pages.html @@ -1,7 +1,10 @@ {{define "title"}}Pages · {{.Blog.Title}}{{end}} {{define "content"}} -<h1>Pages <a class="btn small" href="/b/{{.Blog.Subdomain}}/pages/new">+ New page</a></h1> -<p class="muted">Pages appear in your blog's menu in this order. Each page holds its own list of posts.</p> +<div class="pagehead"> + <h1>Pages</h1> + <div class="actions"><a class="btn" href="/b/{{.Blog.Subdomain}}/pages/new">+ New page</a></div> + <p class="lead muted">Pages appear in your blog's menu in this order. Each page holds its own list of posts.</p> +</div> <div class="card"> <table> <tr><th>Menu order</th><th>Title</th><th>Address</th><th>Posts</th><th></th></tr> diff --git a/internal/web/templates/dashboard/password.html b/internal/web/templates/dashboard/password.html index f333bd7..3e28744 100644 --- a/internal/web/templates/dashboard/password.html +++ b/internal/web/templates/dashboard/password.html @@ -7,7 +7,7 @@ <label>Current password<br><input type="password" name="current" required autocomplete="current-password"></label> <label>New password<br><input type="password" name="password" required minlength="8" autocomplete="new-password"></label> <label>Repeat new password<br><input type="password" name="password2" required minlength="8" autocomplete="new-password"></label> - <button type="submit">Change password</button> + <p class="actionrow"><button type="submit">Change password</button></p> </form> </div> {{end}} diff --git a/internal/web/templates/dashboard/post_form.html b/internal/web/templates/dashboard/post_form.html index 520b9e6..7e6f00f 100644 --- a/internal/web/templates/dashboard/post_form.html +++ b/internal/web/templates/dashboard/post_form.html @@ -15,7 +15,7 @@ <label>Content <span class="muted">(Markdown)</span><br> <textarea name="body" rows="24" class="editor">{{.Data.post.BodyMD}}</textarea></label> <label class="check"><input type="checkbox" name="published"{{if .Data.post.Published}} checked{{end}}> Visible on the blog</label> - <p> + <p class="actionrow"> <button type="submit">Save</button> {{if .Data.post.ID}}<a class="btn secondary" href="{{.BlogURL}}/{{.Data.post.PageSlug}}/{{.Data.post.Slug}}" target="_blank">View post ↗</a>{{end}} <a href="/b/{{.Blog.Subdomain}}/posts">Back to posts</a> diff --git a/internal/web/templates/dashboard/posts.html b/internal/web/templates/dashboard/posts.html index 24e86bb..c0b7112 100644 --- a/internal/web/templates/dashboard/posts.html +++ b/internal/web/templates/dashboard/posts.html @@ -1,6 +1,9 @@ {{define "title"}}Posts · {{.Blog.Title}}{{end}} {{define "content"}} -<h1>Posts <a class="btn small" href="/b/{{.Blog.Subdomain}}/posts/new{{if .Data.pageID}}?page={{.Data.pageID}}{{end}}">+ New post</a></h1> +<div class="pagehead"> + <h1>Posts</h1> + <div class="actions"><a class="btn" href="/b/{{.Blog.Subdomain}}/posts/new{{if .Data.pageID}}?page={{.Data.pageID}}{{end}}">+ New post</a></div> +</div> <form method="get" class="filter"> <label>Page: <select name="page" onchange="this.form.submit()"> diff --git a/internal/web/templates/dashboard/settings.html b/internal/web/templates/dashboard/settings.html index 9b2b325..53a24c4 100644 --- a/internal/web/templates/dashboard/settings.html +++ b/internal/web/templates/dashboard/settings.html @@ -7,7 +7,7 @@ <label>Blog title<br><input name="title" value="{{.Blog.Title}}" required maxlength="120"></label> <label>Tagline <span class="muted">(shown under the title)</span><br><input name="tagline" value="{{.Blog.Tagline}}" maxlength="300"></label> <p class="muted">Address: <code>{{.BlogURL}}</code>{{if ne .Blog.Subdomain "www"}} — only the administrator can change this{{end}}.</p> - <button type="submit">Save</button> + <p class="actionrow"><button type="submit">Save</button></p> </form> </div> {{end}} |
