Sha256: 265bf278babb7fb3528e4d9faed90ca7e1e4a1a70f67e3b2c6d398a311608394

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

<%- @tables.each do |table| -%>
  <%- if table[:content].any? || table[:resolved].any? -%>
<table>
  <thead>
    <tr>
      <th width="50"></th>
      <th width="100%" data-kind="<%= table[:name] %>">
        <%- if table[:count] > 0 -%>
          <%= table[:count] %> <%= table[:name] %><%= "s" unless table[:count] == 1 %>
        <%- else -%>
          :white_check_mark: <%= random_compliment %>
        <%- end -%>
      </th>
     </tr>
  </thead>
  <tbody>
    <%- table[:content].each do |violation| -%>
    <tr>
      <td>:<%= table[:emoji] %>:</td>
      <td data-sticky="<%= violation.sticky %>"><%= violation.message %></td>
    </tr>
    <%- end -%>
    <%- table[:resolved].each do |message| -%>
      <tr>
        <td>:white_check_mark:</td>
        <td data-sticky="true"><del><%= message %></del></td>
      </tr>
    <%- end -%>
  </tbody>
</table>
  <%- end -%>
<%- end -%>

<%- @markdowns.each do |current| -%>
<%= current %>
<%# the previous line has to be aligned far to the left, otherwise markdown can break easily %>
<%- end -%>
<p align="right" data-meta="generated_by_<%= @danger_id %>">
  Generated by :no_entry_sign: <a href="https://github.com/danger/danger/">danger</a>
</p>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danger-0.8.4 lib/danger/comment_generators/github.md.erb
danger-0.8.3 lib/danger/comment_generators/github.md.erb
danger-0.8.2 lib/danger/comment_generators/github.md.erb