summaryrefslogtreecommitdiffstats
path: root/pyload/web
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web')
-rw-r--r--pyload/web/app/scripts/helpers/linkStatus.js2
-rw-r--r--pyload/web/app/scripts/models/LinkStatus.js5
-rw-r--r--pyload/web/app/styles/default/linkgrabber.less5
-rw-r--r--pyload/web/app/templates/default/linkgrabber/package.html4
4 files changed, 11 insertions, 5 deletions
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 = '<span class="text-success">' + i18n.gettext('online') + '</span>';
- else if (status === Api.DownloadState.Offline)
+ else if (status === Api.DownloadStatus.Offline)
s = '<span class="text-error">' + i18n.gettext('offline') + '</span>';
else
s = '<span class="text-info">' + i18n.gettext('unknown') + '</span>';
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 @@
<tbody>
{{#each links}}
<tr>
- <td>{{ name }}</td>
+ <td class="link-name">{{ name }}</td>
<td><img src="{{ pluginIcon plugin }}"> {{ plugin }}</td>
- <td>{{formatSize size }}</td>
+ <td>{{ formatSize size }}</td>
<td>{{ linkStatus status }}</td>
<td><button class="btn btn-danger btn-mini" data-index={{@index}}><i class="icon-trash"></i></button></td>
</tr>