Skip to content
Snippets Groups Projects
Commit 94171f76 authored by pabois's avatar pabois
Browse files

pin in posts

parent e8abe81e
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<% unless hide_category %> <% unless hide_category %>
<th><%= Communication::Website::Post.human_attribute_name('categories') %></th> <th><%= Communication::Website::Post.human_attribute_name('categories') %></th>
<% end %> <% end %>
<th><%= Communication::Website::Post.human_attribute_name('pinned') %></th>
<th colspan="2"><%= Communication::Website::Post.human_attribute_name('published_at') %></th> <th colspan="2"><%= Communication::Website::Post.human_attribute_name('published_at') %></th>
</tr> </tr>
</thead> </thead>
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
</ul> </ul>
</td> </td>
<% end %> <% 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><small><%= l post.published_at, format: :date_with_explicit_month if post.published_at %></small></td>
<td class="text-end"> <td class="text-end">
<div class="btn-group" role="group"> <div class="btn-group" role="group">
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
<%= l @post.published_at, format: :long if @post.published_at %> <%= l @post.published_at, format: :long if @post.published_at %>
<% end %> <% end %>
</p> </p>
<h3 class="h5"><%= Communication::Website::Post.human_attribute_name('pinned') %></h3>
<p><%= t @post.pinned %></p>
<% if @post.categories.any? %> <% if @post.categories.any? %>
<h3 class="h5"><%= Communication::Website::Post.human_attribute_name('categories') %></h3> <h3 class="h5"><%= Communication::Website::Post.human_attribute_name('categories') %></h3>
<ul class="list-unstyled mb-0"> <ul class="list-unstyled mb-0">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment