summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/nodes/show.html.erb13
-rw-r--r--public/stylesheets/admin.css16
2 files changed, 28 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>
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index f1f4c05..93cc3f5 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -1092,6 +1092,22 @@ div#draft_list table td.actions a {
1092 text-decoration: none; 1092 text-decoration: none;
1093} 1093}
1094 1094
1095.tag_pill_list {
1096 display: flex;
1097 flex-wrap: wrap;
1098 gap: 0.4rem;
1099 list-style: none;
1100 padding: 0;
1101 margin: 0;
1102}
1103
1104.tag_pill {
1105 background: #eee;
1106 border-radius: 999px;
1107 padding: 0.15rem 0.75rem;
1108 font-size: 0.9em;
1109}
1110
1095/* ============================================================ 1111/* ============================================================
1096 Search widgets 1112 Search widgets
1097 ============================================================ */ 1113 ============================================================ */