Do not use [METADATA] label, but an icon
This commit is contained in:
parent
f4c5810518
commit
d2ec613670
|
@ -301,7 +301,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="download-name download-item" ng-click="download.collapsed = !download.collapsed">
|
<td class="download-name download-item" ng-click="download.collapsed = !download.collapsed">
|
||||||
{{download.name}}
|
<i class="icon-magnet" style="color: red;" ng-show="download.metadata"></i> {{download.name}}
|
||||||
</td>
|
</td>
|
||||||
<td class="download-controls download-item" rowspan="2">
|
<td class="download-controls download-item" rowspan="2">
|
||||||
<!-- {{{ download control buttons -->
|
<!-- {{{ download control buttons -->
|
||||||
|
|
|
@ -258,6 +258,7 @@ function(
|
||||||
fmtDownloadSpeed: utils.fmtspeed(d.downloadSpeed),
|
fmtDownloadSpeed: utils.fmtspeed(d.downloadSpeed),
|
||||||
uploadSpeed: d.uploadSpeed,
|
uploadSpeed: d.uploadSpeed,
|
||||||
fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed),
|
fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed),
|
||||||
|
collapsed: true,
|
||||||
files: []
|
files: []
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -333,10 +334,9 @@ function(
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.name = btName || dlName || "Unknown";
|
ctx.name = btName || dlName || "Unknown";
|
||||||
|
ctx.metadata = ctx.name.startsWith("[METADATA]");
|
||||||
// collapse the download details initially
|
if (ctx.metadata) {
|
||||||
if (ctx.collapsed === undefined) {
|
ctx.name = ctx.name.substr(10);
|
||||||
ctx.collapsed = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ctx;
|
return ctx;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user