diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-28 04:56:08 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-28 16:37:20 +0200 |
| commit | c96fbbb701ec97f9f6c69ca0d51ed3cd895b260e (patch) | |
| tree | 4d79019c70f0fdbf6afa85cb0aa213756dab37b9 | |
| parent | b94de9fe8c30210469953bbd9880e9cbcc7a3ef5 (diff) | |
Fix tag list rendering in node editor
tag_list.to_s produces space-separated output which acts-as-taggable-on
13.0.0 (comma delimiter only) treats as a single tag on re-save.
Use join(', ') to render comma-separated tags in the input field.
| -rw-r--r-- | app/views/nodes/edit.html.erb | 2 | ||||
| -rw-r--r-- | public/stylesheets/ccc.css | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index b45c700..498fa1f 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | 41 | ||
| 42 | <%= fields_for @draft do |d| %> | 42 | <%= fields_for @draft do |d| %> |
| 43 | <div class="node_description">Tags - comma seperated</div> | 43 | <div class="node_description">Tags - comma seperated</div> |
| 44 | <div class="node_content"><%= text_field_tag :tag_list, @draft.tag_list %></div> | 44 | <div class="node_content"><%= text_field_tag :tag_list, @draft.tag_list.join(', ') %></div> |
| 45 | 45 | ||
| 46 | <div class="node_description">Publish at</div> | 46 | <div class="node_description">Publish at</div> |
| 47 | <div class="node_content"><%= d.datetime_select :published_at, :value => @draft.published_at %></div> | 47 | <div class="node_content"><%= d.datetime_select :published_at, :value => @draft.published_at %></div> |
diff --git a/public/stylesheets/ccc.css b/public/stylesheets/ccc.css index c4530fa..30eb8dd 100644 --- a/public/stylesheets/ccc.css +++ b/public/stylesheets/ccc.css | |||
| @@ -121,6 +121,11 @@ div#center_column .article_partial h2.headline { | |||
| 121 | border-top: 2px solid #cccccc; | 121 | border-top: 2px solid #cccccc; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | /* except for erfa list */ | ||
| 125 | div#center_column .chapter_partial h2.headline { | ||
| 126 | border-top: none; | ||
| 127 | } | ||
| 128 | |||
| 124 | div.article_partial h2 a { | 129 | div.article_partial h2 a { |
| 125 | text-decoration: none; | 130 | text-decoration: none; |
| 126 | } | 131 | } |
