about summary refs log tree commit diff stats
path: root/app/views/admin
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 13:30:32 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 13:30:32 -0400
commitf953e2e158a6d702f96413607d8cb5c026e561a7 (patch)
treeae2f06341c9d4e8d0aed686b705b0155927bd982 /app/views/admin
parente21a783bc2646522bc02750f292b732a470a747f (diff)
downloadthoughts-f953e2e158a6d702f96413607d8cb5c026e561a7.tar.gz
thoughts-f953e2e158a6d702f96413607d8cb5c026e561a7.tar.bz2
thoughts-f953e2e158a6d702f96413607d8cb5c026e561a7.zip
Do it more I guess
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/blogs/_form.html.haml2
-rw-r--r--app/views/admin/blogs/drafts.html.haml4
-rw-r--r--app/views/admin/blogs/edit.html.haml2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 80a1b00..021d1ed 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml
@@ -20,7 +20,7 @@
20 - if f.object.published 20 - if f.object.published
21 = link_to "View post", blog_url(f.object.slug_was), target: "entry-preview" 21 = link_to "View post", blog_url(f.object.slug_was), target: "entry-preview"
22 - else 22 - else
23 = link_to "Preview post", admin_blog_url(f.object), target: "entry-preview" 23 = link_to "Preview post", admin_blog_url(f.object.id), target: "entry-preview"
24 .details-module 24 .details-module
25 .tags-field 25 .tags-field
26 = f.label :tag_list, "Tags" 26 = f.label :tag_list, "Tags"
diff --git a/app/views/admin/blogs/drafts.html.haml b/app/views/admin/blogs/drafts.html.haml index 7f6d19d..9deb395 100644 --- a/app/views/admin/blogs/drafts.html.haml +++ b/app/views/admin/blogs/drafts.html.haml
@@ -10,5 +10,5 @@
10 %td= blog.updated_at.strftime("%B %d, %Y, %l:%M%P") 10 %td= blog.updated_at.strftime("%B %d, %Y, %l:%M%P")
11 %td 11 %td
12 %ul.admin-actions 12 %ul.admin-actions
13 %li= link_to "Preview", admin_blog_url(blog) 13 %li= link_to "Preview", admin_blog_url(blog.id)
14 %li= link_to "Edit", edit_admin_blog_url(blog) 14 %li= link_to "Edit", edit_admin_blog_url(blog.id)
diff --git a/app/views/admin/blogs/edit.html.haml b/app/views/admin/blogs/edit.html.haml index beb7b88..deb9714 100644 --- a/app/views/admin/blogs/edit.html.haml +++ b/app/views/admin/blogs/edit.html.haml
@@ -1,3 +1,3 @@
1- title "Editing #{@blog.title}" 1- title "Editing #{@blog.title}"
2= form_for @blog, url: admin_blog_url(@blog), html: { id: "entry-form" } do |f| 2= form_for @blog, url: admin_blog_url(@blog.id), html: { id: "entry-form" } do |f|
3 = render partial: "form", locals: { f: f } 3 = render partial: "form", locals: { f: f }