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 8f2facb commit 8279bc2Copy full SHA for 8279bc2
1 file changed
app/views/categories/post_types.html.erb
@@ -1,6 +1,12 @@
1
-<h1>What kind of post?</h1>
+<% header_title = @post_types.any? ? 'What kind of post?' : 'No allowed post types'
2
+ header_subtitle = @post_types.any? \
3
+ ? 'This category has more than one type of post available. Pick a post type to get started.'
4
+ : 'This category does not have any post types available.'
5
+%>
6
+
7
+<h1><%= header_title %></h1>
8
<p class="has-font-size-larger has-color-tertiary-500">
- This category has more than one type of post available. Pick a post type to get started.
9
+ <%= header_subtitle %>
10
</p>
11
12
<% @post_types.each do |pt| %>
0 commit comments