Sha256: ef6179be2a7c395a4d6d5502f21950b50dd4f032477731c8d0709cb9914a6198

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 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="http://danger.systems/">danger</a>
</p>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
danger-2.1.2 lib/danger/comment_generators/github.md.erb
danger-2.1.1 lib/danger/comment_generators/github.md.erb
danger-2.1.0 lib/danger/comment_generators/github.md.erb
danger-2.0.1 lib/danger/comment_generators/github.md.erb
danger-2.0.0 lib/danger/comment_generators/github.md.erb
danger-0.10.1 lib/danger/comment_generators/github.md.erb
danger-0.10.0 lib/danger/comment_generators/github.md.erb
danger-0.9.1 lib/danger/comment_generators/github.md.erb
danger-0.9.0 lib/danger/comment_generators/github.md.erb
danger-0.8.5 lib/danger/comment_generators/github.md.erb