From 967d6dd16c25ceba22dcd105079f72534ddb87e9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 26 Sep 2013 16:40:38 +0200 Subject: rewritten decrypter and info fetching thread --- pyload/web/app/scripts/helpers/linkStatus.js | 2 +- pyload/web/app/scripts/models/LinkStatus.js | 5 +++-- pyload/web/app/styles/default/linkgrabber.less | 5 +++++ pyload/web/app/templates/default/linkgrabber/package.html | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) (limited to 'pyload/web') diff --git a/pyload/web/app/scripts/helpers/linkStatus.js b/pyload/web/app/scripts/helpers/linkStatus.js index 2497785fb..448d63691 100644 --- a/pyload/web/app/scripts/helpers/linkStatus.js +++ b/pyload/web/app/scripts/helpers/linkStatus.js @@ -5,7 +5,7 @@ define('helpers/linkStatus', ['underscore', 'handlebars', 'utils/apitypes', 'uti var s; if (status === Api.DownloadStatus.Online) s = '' + i18n.gettext('online') + ''; - else if (status === Api.DownloadState.Offline) + else if (status === Api.DownloadStatus.Offline) s = '' + i18n.gettext('offline') + ''; else s = '' + i18n.gettext('unknown') + ''; diff --git a/pyload/web/app/scripts/models/LinkStatus.js b/pyload/web/app/scripts/models/LinkStatus.js index 2be1ce368..be6385c9c 100644 --- a/pyload/web/app/scripts/models/LinkStatus.js +++ b/pyload/web/app/scripts/models/LinkStatus.js @@ -8,9 +8,10 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], defaults: { name: '', - plugin: '', size: -1, - status: Api.DownloadStatus.Queued + status: Api.DownloadStatus.Queued, + plugin: '', + hash: null }, destroy: function() { diff --git a/pyload/web/app/styles/default/linkgrabber.less b/pyload/web/app/styles/default/linkgrabber.less index c2e3642ef..010dbadec 100644 --- a/pyload/web/app/styles/default/linkgrabber.less +++ b/pyload/web/app/styles/default/linkgrabber.less @@ -49,6 +49,11 @@ } + .link-name { + .hyphens(); + width: 50%; + } + img { height: 22px; } diff --git a/pyload/web/app/templates/default/linkgrabber/package.html b/pyload/web/app/templates/default/linkgrabber/package.html index ed699f0d5..d5d4c669b 100644 --- a/pyload/web/app/templates/default/linkgrabber/package.html +++ b/pyload/web/app/templates/default/linkgrabber/package.html @@ -7,9 +7,9 @@ {{#each links}} - {{ name }} + {{ name }} {{ plugin }} - {{formatSize size }} + {{ formatSize size }} {{ linkStatus status }} -- cgit v1.2.3