forked from underscorgan/community_management
-
Notifications
You must be signed in to change notification settings - Fork 10
/
report_tools60.html
114 lines (93 loc) · 3.89 KB
/
report_tools60.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<html>
<title>Tools PRs that require review</title>
<head>
<link rel="stylesheet" type="text/css" href="tools.css">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src='./web_libraries/jquery.min.js' type='text/javascript'></script>
<script src='./web_libraries/sorttable.js'></script><link rel='stylesheet' href='./web_libraries/bootstrap.min.css'>
<script scr="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"></script>
<script src='./web_libraries/DataTables/datatables.js'></script><link rel='stylesheet' href='./web_libraries/DataTables/datatables.css'>
<script type="text/javascript">
$(document).ready(function() {
// Setup - add a text input to each footer cell
$('#tools thead tr th').each( function () {
var title = $(this).text();
if(title == "age" || title == "pr"){
$(this).append( '<input class="something" type="text" placeholder=" "style="width: 30px" />' );
}
else{
if(title == "age_comment" || title == "num_comments"){
$(this).append( '<input class="something" type="text" placeholder=" "style="width: 60px" />' );
}
else{
$(this).append( '<input class="something" type="text" placeholder="Search " "style="width: 80px" />' );
}
}
} );
// DataTable
var table = $('#tools').DataTable();
// Apply the search
table.columns().every( function () {
var that = this;
$( 'input.something', this.header() ).on( 'keyup change clear', function () {
if ( that.search() !== this.value ) {
that
.search( this.value )
.draw();
}
} );
} );
$( 'input.something' ).on('click', function(e){
e.stopPropagation();
e.preventDefault();
})
} );
$(document).on("click", '.show-more a', function(e) {
e.preventDefault();
var $this = $(this);
var maxLength = 300;
var $content = $this.parent().prev("div.content");
var linkText = $this.text().toUpperCase();
if(linkText === "SHOW MORE"){
linkText = "Show less";
$content.removeClass('hideContent');
$content.addClass('showContent');
} else {
linkText = "Show more";
$content.removeClass('showContent');
$content.addClass('hideContent');
};
$this.text(linkText);
});
</script>
<!-- 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 style="text-align:center;">Tools PRs that require review</h1>
</div>
<div style="overflow-x:auto;">
<a href="https://puppetlabs.github.io/community_management/report_tools30.html" class="button">30 Days</a>
<a href="https://puppetlabs.github.io/community_management/report_tools60.html" class="button">60 Days</a>
<a href="https://puppetlabs.github.io/community_management/report_tools90.html" class="button">90 Days</a>
<a href="https://puppetlabs.github.io/community_management/report_tools.html" class="button">All</a>
<table data-role='table' data-mode='columntoggle' border='1' id='tools' style='width:relative' class='sortable table table-hover ui-responsive table-stroke'>
<thead>
<tr>
</tr>
</thead>
</table>
</div>
</body>
</html>