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

View File

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