Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show in the "Seeders" column if a torrent has a web seed

And style it to be not annoying
  • Loading branch information...
commit 1aefb6c5f44ea81670fe1d33f8b85b73ebec8b01 1 parent 6d2474c
@afresh1 authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 OpenBSDtracker
View
9 OpenBSDtracker
@@ -91,6 +91,8 @@ __DATA__
% {
% my $detail = $torrents->{$hash};
% my $status = $detail->{stats} || {};
+% my $web_seed = '';
+% $web_seed = t span => class => web_seed => 'Web Seed' ;
% my $row_class = $row % 2 ? 'odd' : 'even';
<tr data-hash="<%= $hash %>" class="torrent <%= $row_class %>">
<td><div class="detail_expander <%= $hash %>" style="float:left"></div>
@@ -100,7 +102,7 @@ __DATA__
%= $hash
% }
</td>
- <td><%= $status->{complete} // '--' %></td>
+ <td><%= $status->{complete} // '--' %><%= $web_seed %></td>
<td><%= $status->{incomplete} // '--' %></td>
<td><%= $status->{downloaded} // '--' %></td>
</tr>
@@ -311,6 +313,11 @@ td.selector {
background-color: #FFCC33;
}
+.web_seed {
+ font-size: 75%;
+ float: right;
+}
+
p.error {
color: red;
text-align: center;
Please sign in to comment.
Something went wrong with that request. Please try again.