Skip to content

Commit

Permalink
add data- tags to MOTD things to help tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Sep 7, 2023
1 parent 4a4c12c commit 7cffcec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/app/helpers/dashboard_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ def render_motd_rss_item(item)
sanitize(item.description)
end

content_tag(:div, content)
content_tag(:div, content, data: { 'motd-rss-item': true })
end
end
2 changes: 1 addition & 1 deletion apps/dashboard/app/views/dashboard/_motd_markdown.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h3><%= @motd.title %></h3>
<hr />
<div><%= @motd.content %></div>
<div data-motd-md="true"><%= @motd.content %></div>

0 comments on commit 7cffcec

Please sign in to comment.