Sha256: 6902b217f9110de2ba2948e83800a86f15810b9fe1e9f088100cd87ed60abcff
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 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> <%- max_num_violations = 700 %> <%- table[:content].take(max_num_violations).each do |violation| -%> <tr> <td>:<%= table[:emoji] %>:</td> <td data-sticky="<%= violation.sticky %>"><%= violation.message %></td> </tr> <%- end -%> <%- if table[:content].length > max_num_violations -%> <tr> <td>:warning:</td> <td> Danger found <%= table[:content].length %> violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to <%= max_num_violations %>. </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
4 entries across 4 versions & 1 rubygems