summaryrefslogtreecommitdiffstats
path: root/module/web/static
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static')
-rw-r--r--module/web/static/css/default/style.less18
-rw-r--r--module/web/static/js/views/headerView.js8
2 files changed, 17 insertions, 9 deletions
diff --git a/module/web/static/css/default/style.less b/module/web/static/css/default/style.less
index bc53d6b9e..b3020d30f 100644
--- a/module/web/static/css/default/style.less
+++ b/module/web/static/css/default/style.less
@@ -233,11 +233,17 @@ header .logo {
position: relative;
float: right;
width: 26%;
+ margin-top: 12px;
margin-right: 15px;
line-height: 16px;
#progress-info {
- padding-left: 5px;
+ padding-left: 2px;
+ }
+
+ .sub {
+ font-size: small;
+ padding: 0 2px;
}
.popover { // display: block;
@@ -254,13 +260,12 @@ header .logo {
.iconf-list {
cursor: pointer;
- margin-right: 5px; // same as globalprogress margin
+ margin-right: 2px; // same as globalprogress margin
&:hover {
color: @yellow;
}
}
-
.close {
line-height: 14px;
}
@@ -297,10 +302,9 @@ header .logo {
#globalprogress {
background-color: @greyDark;
background-image: none;
- height: 12px;
- line-height: 12px;
- margin: 8px 0 0;
- border-radius: 10px;
+ height: 8px;
+ margin: 4px 0;
+ border-radius: 8px;
border: 2px solid @grey;
.bar {
diff --git a/module/web/static/js/views/headerView.js b/module/web/static/js/views/headerView.js
index 164c6d715..7705b7076 100644
--- a/module/web/static/js/views/headerView.js
+++ b/module/web/static/js/views/headerView.js
@@ -97,11 +97,12 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
// TODO: what should be displayed in the header
// queue/processing size?
+ var status = this.status.toJSON();
this.$('.status-block').html(
- this.templateStatus(this.status.toJSON())
+ this.templateStatus(status)
);
- var data = {tasks: 0, downloads: 0, speed: 0, single:false};
+ var data = {tasks: 0, downloads: 0, speed: 0, single: false};
this.progressList.each(function(progress) {
if (progress.isDownload()) {
data.downloads += 1;
@@ -121,6 +122,9 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ServerStatus', 'colle
}
// TODO: better progressbar rendering
+ data.etaqueue = status.eta;
+ data.linksqueue = status.linksqueue;
+ data.sizequeue = status.sizequeue;
this.$('#progress-info').html(
this.templateHeader(data)