forked from puppetlabs/community_management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.html.erb
36 lines (31 loc) · 1.45 KB
/
stats.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html><title>PRs that Require Triage</title>
<head><link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-157301458-1', 'auto');
ga('send', 'pageview', { 'page': location.pathname + location.search + location.hash});
ga('set', 'anonymizeIp', true);
</script>
<!-- End Google Analytics -->
</head>
<body>
<h1>PRs that Require Triage <a href='http://www.cornify.com' onclick='cornify_add();return false;'><img src='http://www.cornify.com/assets/cornify.gif' width='61' height='16' border='0' alt='Cornify' /></a><script type='text/javascript' src='http://www.cornify.com/js/cornify.js'></script></h1>
<% stats_data.each do |title, pr_array| %>
<h2><%= title %></h2>
<table border='1' style='width:100%'> <tr>
<td>Title:</td><td>Author:</td><td>Location:</td></tr>
<% OctokitUtils.sort_pulls(pr_array).each do |pr| %>
<tr><td> <a href='<%= pr.html_url %>'><%= pr.title %></a></td> <td><%= pr.user.login %></td>
<% unless pr.head.repo.nil? %>
<td><%= pr.head.repo.name %></td>
<% end %>
</tr>
<% end %>
</table>
<% end %>
</body>
</html>