anchor.diff: -extends layout
  +extends ../layout
   
  -mixin torrent
  +mixin torrent_item(torrent)
      span.wide
         span.panel.panel-default
            span.panel-heading
  
positive.code:          span.panel-body
              span.row
                 span.uploader.col-xs-4
                    small= 'by' + torrent.uploader
                 span.counts.col-xs-8
                    small
                       span.badge= torrent.seeds
                       | &nbsp;
                       | seeds
                    | &nbsp;
                    small
                       span.badge= torrent.leechs
                       | &nbsp;
                       | leechs
              span.row
  
negative.code:                   .btn-group.btn-group-sm
                       a(href=torrent.magnet).btn.btn-success
                          | Magnet Link
                       a(href=helpers.url.torrent_file(torrent.id)).btn.btn-success
                          | Download Torrent
  
  block head
     != css('css/search')
  block content
     if useAjaxLayout
        .item.col-sm-12.col-md-8
           +torrent_item(torrent)
     else
        .row
           .item.col-xs-12
              +torrent_item(torrent)