rbbt-rest 1.8.151 → 1.8.154
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/rest/common/misc.rb +1 -0
- data/lib/rbbt/rest/common/table.rb +4 -2
- data/lib/rbbt/rest/entity/rest.rb +0 -2
- data/share/views/compass/misc.sass +2 -0
- data/share/views/partials/dependencies.haml +2 -2
- data/share/views/public/js/helpers/_ellipsis.js +20 -2
- data/share/views/public/plugins/cytoscapejs/cytoscape.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d66dadd84c4328c97bc395bf66c183478988e8e3e11f31ab359d82563e2ad9
|
4
|
+
data.tar.gz: 4ee1e9191aeaa79db99622fc93853e29cac176ce77882e85eff6e5e80f2611b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526d6a192bfc4a2784c76b67778aec3fd88dca7bbb5a493769fd8d350b5eccd2bb4c5d18b22893fcad8c1b1a2a7e0bbb141fdd0c4d40bed90d482c16038eb853
|
7
|
+
data.tar.gz: dfe8034d8a8f773212573729f888ada533444039404711479fb2e53b80b1077c8e35955f7d95ef5340c04b521ff5d0af82111c7238ad0428cdbcaaac79980a1c
|
@@ -317,7 +317,7 @@ module RbbtRESTHelpers
|
|
317
317
|
|
318
318
|
entity_options = options[:entity_options]
|
319
319
|
|
320
|
-
Misc.prepare_entity(value, type, entity_options) if Entity.formats[type] and not options[:unnamed]
|
320
|
+
value = Misc.prepare_entity(value, type, entity_options) if Entity.formats[type] and not options[:unnamed]
|
321
321
|
|
322
322
|
orig_value = value
|
323
323
|
value = value.link if value.respond_to? :link and not options[:unnamed]
|
@@ -339,7 +339,9 @@ module RbbtRESTHelpers
|
|
339
339
|
when true, "true", :true
|
340
340
|
Array === value ? value.collect{|v| "<span class='table_value'>#{v.to_s}</span>"} * ", " : "<span class='table_value'>#{value}</span>"
|
341
341
|
when :long, "long"
|
342
|
-
Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{
|
342
|
+
Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}</span>"} * " " : "<span class='table_value long' title='#{CGI.escape(orig_value)}'>#{value}</span>"
|
343
|
+
when :lines, "lines"
|
344
|
+
Array === value ? value.zip(orig_value).collect{|v,ov| "<span class='table_value long lines' title='#{CGI.escape(ov.to_s)}'>#{v.to_s}<br/></span>"} * " " : "<span class='table_value long lines' title='#{CGI.escape(orig_value)}'>#{value}</span>"
|
343
345
|
else
|
344
346
|
Array === value ? value.collect{|v| v.to_s} * ", " : value
|
345
347
|
end
|
@@ -3,7 +3,6 @@ require 'rbbt/rest/entity/list'
|
|
3
3
|
|
4
4
|
module Entity
|
5
5
|
module REST
|
6
|
-
USE_ENSEMBL = true
|
7
6
|
|
8
7
|
REST_ENTITIES = Set.new
|
9
8
|
|
@@ -177,7 +176,6 @@ module Entity
|
|
177
176
|
end
|
178
177
|
|
179
178
|
def list_link(text = nil, id = nil, options = {})
|
180
|
-
options = Misc.add_defaults options, :ensembl => USE_ENSEMBL
|
181
179
|
ensembl = Misc.process_options options, :ensembl
|
182
180
|
|
183
181
|
if ensembl and self.respond_to? :ensembl and self.format !~ /^Ensembl /
|
@@ -15,7 +15,7 @@
|
|
15
15
|
- dep_status = "done" if dep.path.exists?
|
16
16
|
|
17
17
|
- dep_status ||= dep.status
|
18
|
-
- if ! remote && dep.file(:progress).exists?
|
18
|
+
- if ! remote && ! dep_status == 'done' && dep.file(:progress).exists?
|
19
19
|
- pgr = dep.file(:progress).yaml
|
20
20
|
- if pgr and pgr[:last_percent]
|
21
21
|
- start = pgr[:start]
|
@@ -63,7 +63,7 @@
|
|
63
63
|
- elsif Module === dep_workflow
|
64
64
|
- wf = dep_workflow
|
65
65
|
|
66
|
-
- if
|
66
|
+
- if remote
|
67
67
|
- url = dep.path.split("?").first
|
68
68
|
%a(href=url) #{ name }
|
69
69
|
|
@@ -29,7 +29,12 @@ function contract_ellipsis(elem, max){
|
|
29
29
|
var links = [];
|
30
30
|
var head = elements.slice(0, max).removeClass('long');
|
31
31
|
head.each(function(){ links.push(this.outerHTML)})
|
32
|
-
|
32
|
+
|
33
|
+
if (elements.first().hasClass('lines'))
|
34
|
+
new_content = links.join(" ");
|
35
|
+
else
|
36
|
+
new_content = links.join(", ");
|
37
|
+
|
33
38
|
elem.html(new_content);
|
34
39
|
}
|
35
40
|
|
@@ -45,9 +50,22 @@ function restore_ellipsis(elem){
|
|
45
50
|
var span = elem.find('span.ellipsis')
|
46
51
|
if (span.length == 1){
|
47
52
|
var html = span.attr('attr-text');
|
53
|
+
|
54
|
+
var by_lines = span.parent().find('span').first().hasClass('lines')
|
55
|
+
|
56
|
+
if (by_lines){
|
57
|
+
var other_tds = span.parent().parent().find('td')
|
58
|
+
}
|
59
|
+
|
48
60
|
elem.html(unescape(html));
|
61
|
+
|
62
|
+
if (by_lines){
|
63
|
+
other_tds.each(function(i,x){restore_ellipsis($(x))})
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
update_rbbt();
|
49
68
|
}
|
50
|
-
update_rbbt();
|
51
69
|
}
|
52
70
|
|
53
71
|
$('body').on('click', 'a.open_ellipsis', function(link){
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
./cytoscape.umd.js
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.154
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|