about summary refs log tree commit diff stats
path: root/app/views
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-06-29 14:58:26 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-06-29 14:58:26 -0400
commite416f49808b4bddf2fb0e5018c4e4453b50bfd0e (patch)
tree0f0aecbe00e62da4fad5d95d0450f7a2bfd267e8 /app/views
parent4cffc8c90b5e316baf3e49b665dd67ea9e965272 (diff)
downloadthoughts-e416f49808b4bddf2fb0e5018c4e4453b50bfd0e.tar.gz
thoughts-e416f49808b4bddf2fb0e5018c4e4453b50bfd0e.tar.bz2
thoughts-e416f49808b4bddf2fb0e5018c4e4453b50bfd0e.zip
Added views for blog posts
Diffstat (limited to 'app/views')
-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
.cpp?id=996076cf151a27a7a8d278aa4d15b28cfb196c46'>996076c ^
8d7ef2b ^
683e22c ^

138e0a8 ^
ce0628c ^
410f971 ^
254ecd9 ^
aac57db ^
996076c ^
aac57db ^





5faac69 ^
aac57db ^


f0eab98 ^
aac57db ^






5faac69 ^
aac57db ^






5faac69 ^
aac57db ^






5faac69 ^
aac57db ^

b628c80 ^
0334d39 ^

1656242 ^



78e5bd2 ^

c54dd4f ^
78e5bd2 ^



2491883 ^


b628c80 ^
0334d39 ^
d92c797 ^

2ff08df

996076c ^


d92c797 ^



996076c ^
d92c797 ^




2ff08df

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107