Do not use [METADATA] label, but an icon

This commit is contained in:
Nils Maier 2014-03-03 21:29:05 +01:00
parent 2712b236ba
commit 1ee0a95d76
2 changed files with 5 additions and 5 deletions

View File

@ -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 -->

View File

@ -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;