diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blogs/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/application.html.haml | 1 |
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 |