diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-14 01:39:02 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-14 01:39:02 +0200 |
| commit | 0705f4de4fce679b2501f0583defb1160f3c1666 (patch) | |
| tree | 961aaadf787641f1b3f199a91bf06641498255d8 /app | |
| parent | 7185965d97a2d7d98f5feda6cc10fb5d87fcf816 (diff) | |
Make tags a pill list on nodes#show
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/nodes/show.html.erb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 1469572..66f04f9 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb | |||
| @@ -185,8 +185,19 @@ | |||
| 185 | <p class="revisions_full_history_link"><%= link_to 'Full history (diff / restore)', node_revisions_path(@node) %></p> | 185 | <p class="revisions_full_history_link"><%= link_to 'Full history (diff / restore)', node_revisions_path(@node) %></p> |
| 186 | </div> | 186 | </div> |
| 187 | 187 | ||
| 188 | |||
| 188 | <div class="node_description">Tags</div> | 189 | <div class="node_description">Tags</div> |
| 189 | <div class="node_content node_info_group"><%= @page.tag_list %></div> | 190 | <div class="node_content node_info_group"> |
| 191 | <% if @page.tag_list.any? %> | ||
| 192 | <ul class="tag_pill_list"> | ||
| 193 | <% @page.tag_list.sort.each do |tag| %> | ||
| 194 | <li class="tag_pill"><%= tag %></li> | ||
| 195 | <% end %> | ||
| 196 | </ul> | ||
| 197 | <% else %> | ||
| 198 | <span class="field_hint">No tags.</span> | ||
| 199 | <% end %> | ||
| 200 | </div> | ||
| 190 | 201 | ||
| 191 | <% if @page.assets.images.any? %> | 202 | <% if @page.assets.images.any? %> |
| 192 | <div class="node_description">Images</div> | 203 | <div class="node_description">Images</div> |
