Skip to content

Commit e3f8f97

Browse files
committed
Addressing PR comments
1 parent 4c9da0c commit e3f8f97

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/components/cms/email_course_list_component.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ class EmailCourseListComponent < ViewComponent::Base
55
erb_template <<~ERB
66
<table>
77
<% if @section_title %>
8-
<tr><td><h2><%= @section_title %></h2></td></tr>
8+
<tr>
9+
<td>
10+
<h2><%= @section_title %></h2>
11+
</td>
12+
</tr>
913
<% end %>
1014
<% @courses.each do |course| %>
1115
<tr>

app/components/cms/rich_text_block_text_component.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class Text < RichTextBlockTextComponent
5252
end
5353

5454
class Link < RichTextBlockTextComponent
55-
# Had to removed indentation in this erb as it was adding whitespace to page render
5655
erb_template <<~ERB
5756
<% @blocks[:children].each do |child| -%>
5857
<%= render build(child) -%>

0 commit comments

Comments
 (0)