Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
2  app/assets/javascripts/application.js.coffee
@@ -20,7 +20,7 @@ jQuery ->
$('form#new_torrent_search :radio').bind 'change', search
$('form#new_torrent_search :text').bindWithDelay 'keyup change', search, 333
- $('ul#torrents .torrent').on 'click', -> $(this).toggleClass('full')
+ $('#torrents').on 'click', '.torrent', (event)-> $(this).toggleClass('full') if $(event.target).is('div')
$('#title').bind 'click', -> $('body').trigger 'tick'
View
8 app/assets/stylesheets/_torrents.scss
@@ -28,7 +28,6 @@ ul.torrents {
li.torrent {
padding: 0.5em;
margin-bottom: 0.8em;
- cursor: pointer;
@include border-radius(4px);
@include box-shadow(lighten($bodyBackground, 15) 1px 1px 3px);
position: relative;
@@ -49,6 +48,10 @@ ul.torrents {
float: right;
margin: 5px;
}
+ .rates, .rates > div, .size, .count {
+ float: left;
+ margin: 5px;
+ }
.progress {
position: relative;
@@ -62,6 +65,9 @@ ul.torrents {
}
}
}
+ &.more {
+ cursor: pointer;
+ }
.row-fluid {
display: none;
&:first-of-type {
View
2  app/decorators/torrent_decorator.rb
@@ -1,7 +1,7 @@
class TorrentDecorator < ApplicationDecorator
decorates :torrent
- allows :running?, :content, :moving?, :status, :title, :content, :active?, :previous_changes
+ allows :running?, :content, :moving?, :status, :title, :content, :active?, :previous_changes, :remote?, :url
def progress
h.render('bar', percent: percent, eta: eta)
View
4 app/views/torrents/_item.html.haml
@@ -1,6 +1,6 @@
- item ||= torrent
= decorate item do |torrent|
- %li.torrent{class: "#{torrent.status} #{defined?(extra_class) && extra_class}", id: torrent.item_id}
+ %li.torrent{class: "#{torrent.status} #{defined?(extra_class) && extra_class} #{torrent.content.exist? && 'more'}", id: torrent.item_id}
%h4.title= torrent.title
.row-fluid
.span6
@@ -8,6 +8,8 @@
.progress.progress-striped.progress-success.active= torrent.progress
- if torrent.message.present?
.message= torrent.message
+ - if torrent.remote?
+ .url= torrent.url
.span3
- if torrent.running?
.rates= torrent.rates

No commit comments for this range

Something went wrong with that request. Please try again.