about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--app/views/blogs/_blog.html.haml3
-rw-r--r--app/views/entries/edit.html.haml11
2 files changed, 14 insertions, 0 deletions
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 @@
1%article#blog-post
2 %h2#blog-title= blog.title
3 %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 @@
1= form_for @entry, url: @entry.path do |f|
2 .field
3 = f.label :title
4 = f.text_field :title
5 .field
6 = f.label :body
7 = f.text_area :body
8 .field
9 = f.label :slug
10 = f.text_field :slug
11 = f.submit