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