From e416f49808b4bddf2fb0e5018c4e4453b50bfd0e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 29 Jun 2017 14:58:26 -0400 Subject: Added views for blog posts --- app/views/blogs/_blog.html.haml | 3 +++ app/views/entries/edit.html.haml | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 app/views/blogs/_blog.html.haml create mode 100644 app/views/entries/edit.html.haml (limited to 'app/views') diff --git a/app/views/blogs/_blog.html.haml b/app/views/blogs/_blog.html.haml new file mode 100644 index 0000000..e83d21a --- /dev/null +++ b/app/views/blogs/_blog.html.haml @@ -0,0 +1,3 @@ +%article#blog-post + %h2#blog-title= blog.title + %section#blog-content= blog.body.html_safe diff --git a/app/views/entries/edit.html.haml b/app/views/entries/edit.html.haml new file mode 100644 index 0000000..1872366 --- /dev/null +++ b/app/views/entries/edit.html.haml @@ -0,0 +1,11 @@ += form_for @entry, url: @entry.path do |f| + .field + = f.label :title + = f.text_field :title + .field + = f.label :body + = f.text_area :body + .field + = f.label :slug + = f.text_field :slug + = f.submit -- cgit 1.4.1