add the comment field to the Details tab

This commit is contained in:
Damien Churchill 2009-03-17 00:03:15 +00:00
parent da318ba450
commit b00b942fee
4 changed files with 5 additions and 3 deletions

View File

@ -77,7 +77,7 @@ html, body {
clear: left;
}
.deluge-status dd.torrent_name, .deluge-status dd.status, .deluge-status dd.tracker, .deluge-status dd.path {
.deluge-status dd.torrent_name, .deluge-status dd.status, .deluge-status dd.tracker, .deluge-status dd.path, .deluge-status dd.comment {
width: 500px;
}

View File

@ -158,7 +158,8 @@ Deluge.Details.Details = {
size: fsize(torrent.total_size),
files: torrent.num_files,
status: torrent.tracker_status,
tracker: torrent.tracker
tracker: torrent.tracker,
comment: torrent.comment
};
this.fields.each(function(value, key) {
value.set('text', data[key]);

View File

@ -133,7 +133,7 @@ Deluge.Keys = {
],
Details: [
'name', 'save_path', 'total_size', 'num_files', 'tracker_status',
'tracker'
'tracker', 'comment'
],
Options: [
'max_download_speed', 'max_upload_speed', 'max_connections',

View File

@ -4,6 +4,7 @@
<dt class="path">${_("Path")}:</dt><dd class="path"/>
<dt class="size">${_("Total Size")}:</dt><dd class="size"/>
<dt class="files">${_("# of files")}:</dt><dd class="files"/>
<dt class="comment">${_("Comment")}:</dt><dd class="comment" />
<dt class="status">${_("Status")}:</dt><dd class="status"/>
<dt class="tracker">${_("Tracker")}:</dt><dd class="tracker"/>
</dl>