Sha256: a30055901f1435a000ac282bf0c51acb1b03df3f2c9eb9841604902868d9fc48
Contents?: true
Size: 1.4 KB
Versions: 36
Compression:
Stored size: 1.4 KB
Contents
<div style="font-family: monospace;"> <% @projects.each do |project| %> <div style="float: left; width: 390px; margin: 10px;"> <table border="1" style="border: 1px solid black; width: 100%; padding: 5px;" summary="<%= project.full_name %>"> <tr> <th style="text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"> <a href="<%= project.html_url %>" style="color: inherit; text-decoration: none;"> <%= project.full_name %> </a> </th> </tr> <tr> <td> <strong>Last commit …</strong> </td> </tr> <tr> <td style="text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"> <span title="<%= project.pushed_at %>"> <%= project.age_in_words %> ago </span> </td> </tr> <% TIME_INTERVALS.each_pair do |interval_name, interval_in_seconds| %> <% in_interval = (project.age_in_seconds <= interval_in_seconds) %> <tr style="border: 1px solid black; background-color: <%= in_interval ? GREEN[interval_name] : RED[interval_name] %>;"> <td style="color: white; padding-left: 20px;"> … in the previous <%= interval_name %> </td> </tr> <% end %> </table> </div> <% end %> </div>
Version data entries
36 entries across 36 versions & 1 rubygems