Skip to content

Commit 2270ca7

Browse files
committed
Page index minor change
1 parent c90c1d4 commit 2270ca7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/page_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def help_index
6868
# GET /help/topic
6969
def help(topic = nil)
7070
topic ||= params[:topic]
71-
redirect_to(help_index_path) unless topic.present?
71+
return redirect_to(help_index_path) unless topic.present?
7272

7373
topic = topic.gsub(/[^A-Za-z0-9_]/, '').to_sym
7474
category = help_topic_categories[topic]

app/views/page/help_index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<% old_cat = nil %>
66
<% @topics.each do |cat, topics| %>
77
<% if cat != old_cat %>
8-
<div class="mt-3 text-muted"><b>[ <%= cat %> ]</b></div>
8+
<h3 class="mt-3 text-muted"><%= cat.to_s.capitalize %></h3>
99
<% end %>
1010

1111
<% topics.each do |k, topic| %>

0 commit comments

Comments
 (0)