From 42d9db526d3aef2e08848d6bc587feaf3700db42 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 7 Jul 2018 16:23:04 -0400 Subject: Added tags Blogs and streams can now be tagged. Records now show the appropriate tags for an entry. Updates work oddly, because their records show the stream's tags, since updates do not have tags themselves. refs #2 --- app/views/admin/blogs/_form.html.haml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views/admin/blogs/_form.html.haml') diff --git a/app/views/admin/blogs/_form.html.haml b/app/views/admin/blogs/_form.html.haml index 12f7a82..36925af 100644 --- a/app/views/admin/blogs/_form.html.haml +++ b/app/views/admin/blogs/_form.html.haml @@ -21,6 +21,10 @@ = link_to "View post", blog_url(f.object.slug_was), target: "entry-preview" - else = link_to "Preview post", admin_blog_url(f.object), target: "entry-preview" + .details-module + .tags-field + = f.label :tag_list, "Tags" + = f.text_field :tag_list, type: :tags, value: f.object.tag_list.join(",") .details-module .published-field = f.check_box :published -- cgit 1.4.1