Permalink
Browse files

Show the creation date in the main list

Makes it easier to see what is new
  • Loading branch information...
1 parent 1014b86 commit 16592e0cfe371058310e80a40bbc0b6261d50c02 @afresh1 committed Oct 30, 2012
Showing with 7 additions and 4 deletions.
  1. +5 −2 OpenBSDtracker
  2. +2 −2 regen.sh
View
@@ -140,12 +140,15 @@ __DATA__
% my $detail = $torrents->{$hash};
% my $status = $detail->{stats} || {};
% my $web_seed = '';
-% $web_seed = t span => class => web_seed => 'Web Seed' ;
+% $web_seed = t span => class => 'additional-detail' => '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>
% if ($detail->{info}->{name}) {
%= link_to $detail->{info}->{name} => "torrent/$detail->{torrent}"
+% if ($detail->{'creation date'}) {
+ <span class="additional-detail">Created <%= human_date( $detail->{'creation date'} ) %></span>
+% }
% } else {
%= $hash
% }
@@ -361,7 +364,7 @@ td.selector {
background-color: #FFCC33;
}
-.web_seed {
+.additional-detail {
font-size: 75%;
float: right;
}
View
@@ -36,5 +36,5 @@ echo "Reload web server"
sudo /usr/local/bin/hypnotoad /home/OpenBSDTorrents/OpenBSDtracker
echo
-echo ${OBT_DIR_HOME}/SeedTorrents.pl
-${OBT_DIR_HOME}/SeedTorrents.pl
+#echo ${OBT_DIR_HOME}/SeedTorrents.pl
+#${OBT_DIR_HOME}/SeedTorrents.pl

0 comments on commit 16592e0

Please sign in to comment.