diff --git a/app/views/admin/communication/website/posts/_list.html.erb b/app/views/admin/communication/website/posts/_list.html.erb index 1fdddb507b588d2f5fc2824e9ff0924830c88531..61f78aa6ced46a4de5dcf6c09a939a47100357da 100644 --- a/app/views/admin/communication/website/posts/_list.html.erb +++ b/app/views/admin/communication/website/posts/_list.html.erb @@ -13,6 +13,7 @@ <% unless hide_category %> <th><%= Communication::Website::Post.human_attribute_name('categories') %></th> <% end %> + <th><%= Communication::Website::Post.human_attribute_name('pinned') %></th> <th colspan="2"><%= Communication::Website::Post.human_attribute_name('published_at') %></th> </tr> </thead> @@ -36,6 +37,7 @@ </ul> </td> <% end %> + <td><small><%= t post.pinned %></small></td> <td><small><%= l post.published_at, format: :date_with_explicit_month if post.published_at %></small></td> <td class="text-end"> <div class="btn-group" role="group"> diff --git a/app/views/admin/communication/website/posts/show.html.erb b/app/views/admin/communication/website/posts/show.html.erb index 717be3494729b6ed30a4655debe3310329bd7386..f8d9c7788c8283de8e54749617cfb2393e197105 100644 --- a/app/views/admin/communication/website/posts/show.html.erb +++ b/app/views/admin/communication/website/posts/show.html.erb @@ -34,6 +34,8 @@ <%= l @post.published_at, format: :long if @post.published_at %> <% end %> </p> + <h3 class="h5"><%= Communication::Website::Post.human_attribute_name('pinned') %></h3> + <p><%= t @post.pinned %></p> <% if @post.categories.any? %> <h3 class="h5"><%= Communication::Website::Post.human_attribute_name('categories') %></h3> <ul class="list-unstyled mb-0">