From b00b942fee9c59e424f50a2e82a3deed40a1cc03 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 17 Mar 2009 00:03:15 +0000 Subject: [PATCH] add the comment field to the Details tab --- deluge/ui/web/css/deluge.css | 2 +- deluge/ui/web/js/deluge-details.js | 3 ++- deluge/ui/web/js/deluge.js | 2 +- deluge/ui/web/render/tab_details.html | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/css/deluge.css b/deluge/ui/web/css/deluge.css index 07a887b50..80500f581 100644 --- a/deluge/ui/web/css/deluge.css +++ b/deluge/ui/web/css/deluge.css @@ -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; } diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js index 7797eadec..22f2a6389 100644 --- a/deluge/ui/web/js/deluge-details.js +++ b/deluge/ui/web/js/deluge-details.js @@ -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]); diff --git a/deluge/ui/web/js/deluge.js b/deluge/ui/web/js/deluge.js index 3ad1c4564..75b1497aa 100644 --- a/deluge/ui/web/js/deluge.js +++ b/deluge/ui/web/js/deluge.js @@ -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', diff --git a/deluge/ui/web/render/tab_details.html b/deluge/ui/web/render/tab_details.html index bcab6c365..14fd8a877 100644 --- a/deluge/ui/web/render/tab_details.html +++ b/deluge/ui/web/render/tab_details.html @@ -4,6 +4,7 @@
${_("Path")}:
${_("Total Size")}:
${_("# of files")}:
+
${_("Comment")}:
${_("Status")}:
${_("Tracker")}: