warble-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [incubator-warble-server] 02/03: add notes (description) and allow edits
Date Wed, 27 Jun 2018 18:30:00 GMT
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-server.git

commit 49b1abd22405351260db1b93d430ce24141ea36a
Author: Daniel Gruno <humbedooh@apache.org>
AuthorDate: Wed Jun 27 13:29:48 2018 -0500

    add notes (description) and allow edits
---
 ui/js/coffee/warble_clientlist.coffee | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ui/js/coffee/warble_clientlist.coffee b/ui/js/coffee/warble_clientlist.coffee
index 8075f12..d707d33 100644
--- a/ui/js/coffee/warble_clientlist.coffee
+++ b/ui/js/coffee/warble_clientlist.coffee
@@ -185,6 +185,14 @@ clientlist = (json, state) ->
             ])
             d.inject(line)
             
+            # node description
+            line = new HTML('div', {class: 'clientcardline'})
+            line.inject( [
+                new HTML('b', {}, "Notes: "),
+                new HTML('span', {title: 'Click to edit', id: "node_description_#{source.id}",
onclick: "nodeVal(#{source.id}, this, 'description');"}, txt(source.description||"(none)"))
+            ])
+            d.inject(line)
+            
             # node last ping
             line = new HTML('div', {class: 'clientcardline'})
             lp = new Date(source.lastping*1000.0)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org


Mime
View raw message