We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a033b commit 25eb7a1Copy full SHA for 25eb7a1
1 file changed
app/views/layouts/_header.html.erb
@@ -283,7 +283,7 @@ $(() => {
283
<% end %>
284
<div class="category-header--nav-separator"></div>
285
<% button_text = current_cat.button_text.present? ? current_cat.button_text : 'Create Post' %>
286
- <% if current_cat&.top_level_post_types.any? %>
+ <% if current_cat&.top_level_post_types.any? || admin? %>
287
<%= link_to category_post_types_path(current_cat.id),
288
class: "category-header--nav-item is-button" do %>
289
<%= button_text %>
0 commit comments