%- @tables.each do |table| -%>
<%- if table[:content].any? -%>
<%- table[:content].each do |violation| -%>
:<%= table[:emoji] %>: |
<%= "" if table[:resolved] %><%= violation.message %><%= "" if table[:resolved] %> |
<%- end -%>
<%- end -%>
<%- end -%>
<%- @markdowns.each do |current| -%>
<%= current %>
<%# the previous line has to be aligned far to the left, otherwise markdown can break easily %>
<%- end -%>
<%# We need to add the generated_by_ to identify comments from danger. But with inlines %>
<%# it might be a little annoying, so we set on the table, but if we have markdown we add the footer anyway %>
<%- if @markdowns.count > 0 -%>
Generated by :no_entry_sign: Danger
<%- end -%>