about summary refs log tree commit diff stats
path: root/app/views/admin/blogs/_form.html.haml
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:39:45 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:39:45 -0400
commit292c2e4a031360e5b58385f4b6b7f3e47a8ca988 (patch)
treebbbbf7d61753c3f1597b185aed4ad5d4d7600775 /app/views/admin/blogs/_form.html.haml
parent5f860c66d300654934848aee1abe8e5c0d41836e (diff)
downloadthoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.tar.gz
thoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.tar.bz2
thoughts-292c2e4a031360e5b58385f4b6b7f3e47a8ca988.zip
Fixed broken blog post urls
Diffstat (limited to 'app/views/admin/blogs/_form.html.haml')
-rw-r--r--app/views/admin/blogs/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 01177c1..625c85e 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml
@@ -18,7 +18,7 @@
18 - unless f.object.new_record? 18 - unless f.object.new_record?
19 #entry-preview-link.details-module 19 #entry-preview-link.details-module
20 - if f.object.published 20 - if f.object.published
21 = link_to "View post", blog_post_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.id), target: "entry-preview" 23 = link_to "Preview post", admin_blog_url(f.object.id), target: "entry-preview"
24 .details-module 24 .details-module