torrent.pug - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
 (HTM) git clone git://jay.scot/seedlinux
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       torrent.pug (844B)
       ---
            1 extends layout 
            2 
            3 mixin status(torrent)
            4   td
            5     a(href="/details/" + torrent.hash)
            6       = torrent.name.replace(/\.[^/.]+$/, "").toLowerCase()
            7   td= torrent.comment
            8   td(data-sort-value=torrent.seeders)= torrent.seeders
            9   td(data-sort-value=torrent.leechers)= torrent.leechers
           10   td
           11     i.magnet.olive.icon
           12     a(href="" + torrent.magneturi)= "Magnet"
           13     i.barcode.olive.icon
           14     a(href="/download/" + torrent.hash)= "Torrent"
           15 
           16 block content
           17   table.ui.sortable.selectable.very.compact.olive.table
           18     thead
           19       tr
           20         th= 'Name'
           21         th.no-sort= 'Comment'
           22         th= 'Seeders'
           23         th= 'Leechers'
           24         th.no-sort= 'Magnet'
           25     tbody
           26       each i in data.torrent_data
           27         if i.seeders < 10 && i.seeders != 0
           28           tr.negative
           29             +status(i)
           30         if i.seeders > 11
           31           tr.positive
           32             +status(i)