about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-12-10 17:50:25 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-12-10 17:50:25 -0500
commitf2602e79306f348eb6c8b2a3e9b852c0cd6ee0d8 (patch)
treed96449f52998e30f3494229c77104cafb4b43307 /app
parent70b3a1a4ce8918b32d11a80b0d8935ba46115edb (diff)
downloadthoughts-f2602e79306f348eb6c8b2a3e9b852c0cd6ee0d8.tar.gz
thoughts-f2602e79306f348eb6c8b2a3e9b852c0cd6ee0d8.tar.bz2
thoughts-f2602e79306f348eb6c8b2a3e9b852c0cd6ee0d8.zip
Added convenience link for editing published blog posts HEAD master
Diffstat (limited to 'app')
-rw-r--r--app/views/blogs/show.html.haml2
-rw-r--r--app/views/layouts/application.html.haml1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/views/blogs/show.html.haml b/app/views/blogs/show.html.haml index 7558257..32d44bd 100644 --- a/app/views/blogs/show.html.haml +++ b/app/views/blogs/show.html.haml
@@ -6,3 +6,5 @@
6.clear 6.clear
7= render @blog, short: false 7= render @blog, short: false
8= show_comments(@blog) 8= show_comments(@blog)
9- content_for :meta_sidebar_content do
10 = link_to "Edit this post", edit_admin_blog_url(@blog.id)
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ac338c7..90ea5e2 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml
@@ -71,6 +71,7 @@
71 - if not user_signed_in? 71 - if not user_signed_in?
72 %li= link_to "Log in", new_user_session_path 72 %li= link_to "Log in", new_user_session_path
73 - if user_signed_in? 73 - if user_signed_in?
74 = yield :meta_sidebar_content
74 %li= link_to "Admin", admin_url 75 %li= link_to "Admin", admin_url
75 %li= link_to "Log out", destroy_user_session_path, method: :delete 76 %li= link_to "Log out", destroy_user_session_path, method: :delete
76 #main 77 #main