We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c90c1d4 commit 2270ca7Copy full SHA for 2270ca7
2 files changed
app/controllers/page_controller.rb
@@ -68,7 +68,7 @@ def help_index
68
# GET /help/topic
69
def help(topic = nil)
70
topic ||= params[:topic]
71
- redirect_to(help_index_path) unless topic.present?
+ return redirect_to(help_index_path) unless topic.present?
72
73
topic = topic.gsub(/[^A-Za-z0-9_]/, '').to_sym
74
category = help_topic_categories[topic]
app/views/page/help_index.html.erb
@@ -5,7 +5,7 @@
5
<% old_cat = nil %>
6
<% @topics.each do |cat, topics| %>
7
<% if cat != old_cat %>
8
- <div class="mt-3 text-muted"><b>[ <%= cat %> ]</b></div>
+ <h3 class="mt-3 text-muted"><%= cat.to_s.capitalize %></h3>
9
<% end %>
10
11
<% topics.each do |k, topic| %>
0 commit comments