virgil/commit
UPDATE layout of nested labels
author | Michiel Hildebrand |
---|---|
Tue Mar 26 13:26:14 2013 +0100 | |
committer | Michiel Hildebrand |
Tue Mar 26 13:26:14 2013 +0100 | |
commit | d3d76a42ee42a650fca15080533b21c201956ada |
tree | dee76ad737da0bb1128378599a02f9639d7c8464 |
parent | 8c75f296dd243da90e00fe01ff7d0adcac823165 |
Diff style: patch stat
diff --git a/web/html/wizard.html b/web/html/wizard.html index ecbf1da..45a0148 100644 --- a/web/html/wizard.html +++ b/web/html/wizard.html @@ -17,12 +17,20 @@ } .labelbox { margin-top: 10px; - padding: 8px; border-top: 1px solid #EEE; } .labelbox .badge { float: right; } + .labelbox label { + margin: 4px 8px; + } + .labelbox label.empty { + color: #888; + } + .labelbox h6 { + margin: 4px 0 0; + } .sidebar { margin-top: 10px; } @@ -202,9 +210,13 @@ $.fn.appendMentionGroup = function(group) { node = $(this); node.append('<h6>'+group.drug+'</h6>'); - $(group.mentions).each(function(i, e) { - node.appendMention(e); - }); + if(group.mentions.length==0) { + node.append('<label class="empty">no mentions</label>') + } else { + $(group.mentions).each(function(i, e) { + node.appendMention(e); + }); + } }; $.fn.updateDrugNames = function(drug, url) {