43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Statistics for dcav.pw</title>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link rel="stylesheet" type="text/css" href=<%="#{RES_BASE}style.css"%>>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Screenshot statistics for dcav.pw</h1>
|
||
|
<h2>Leaderboards</h2>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th></th>
|
||
|
<th>Name</th>
|
||
|
<th>Count</th>
|
||
|
<th>Size</th>
|
||
|
</tr>
|
||
|
<% count = 0
|
||
|
users.sort.each do |user|
|
||
|
count += 1
|
||
|
%>
|
||
|
<%= %Q{
|
||
|
<tr>
|
||
|
<td>#{count}</td>
|
||
|
<td>#{user.name}</td>
|
||
|
<td class=\"right-align\">#{user.count}</td>
|
||
|
<td class=\"right-align\">#{Filesize.from(user.size.to_s + "B").pretty}</td>
|
||
|
</tr>}
|
||
|
%>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
<h2>Charts</h2>
|
||
|
<img src=<%="#{RES_BASE}img/screenshot_count.svg"%> />
|
||
|
<br />
|
||
|
<img src=<%="#{RES_BASE}img/screenshot_size.svg"%> />
|
||
|
<br />
|
||
|
<img src=<%="#{RES_BASE}img/dcavpie.svg"%> />
|
||
|
<br />
|
||
|
<i>Page generated at <%= Time.now %></i>
|
||
|
</body>
|
||
|
</html>
|