about summary refs log tree commit diff stats
path: root/app/views/admin/blogs
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 16:25:37 -0400
commit5f860c66d300654934848aee1abe8e5c0d41836e (patch)
tree73c6deda7baa751279f7b4fb9a0f10572cf92f0f /app/views/admin/blogs
parent192705645135aa20951d78949d7e49e4bad58974 (diff)
downloadthoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.gz
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.tar.bz2
thoughts-5f860c66d300654934848aee1abe8e5c0d41836e.zip
Added blog archive
The path to blog posts is now "blog" instead of "says", btw.
Diffstat (limited to 'app/views/admin/blogs')
-rw-r--r--app/views/admin/blogs/_form.html.haml2
-rw-r--r--app/views/admin/blogs/index.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 625c85e..01177c1 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_url(f.object.slug_was), target: "entry-preview" 21 = link_to "View post", blog_post_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
diff --git a/app/views/admin/blogs/index.html.haml b/app/views/admin/blogs/index.html.haml index 9899176..c74fef5 100644 --- a/app/views/admin/blogs/index.html.haml +++ b/app/views/admin/blogs/index.html.haml
@@ -10,5 +10,5 @@
10 %td= blog.published_at.strftime("%B %d, %Y, %l:%M%P") 10 %td= blog.published_at.strftime("%B %d, %Y, %l:%M%P")
11 %td 11 %td
12 %ul.admin-actions 12 %ul.admin-actions
13 %li= link_to "View", blog_url(blog.slug) 13 %li= link_to "View", blog_post_url(blog.slug)
14 %li= link_to "Edit", edit_admin_blog_url(blog.id) 14 %li= link_to "Edit", edit_admin_blog_url(blog.id)