rbbt-rest 1.8.137 → 1.8.138

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 260f3dfac0e66e1895ed7aea67d5a07e91b4e3b47f009278b36eee79e419107e
4
- data.tar.gz: 74d2cb800b8c8f72a2fcfccb5e16386c051e1474029de057d2f81a817f009518
3
+ metadata.gz: 89c53438e31057a5fdfe811d06380fa17e5dc302fe0bbe6244ec64a7ac16bc57
4
+ data.tar.gz: e29b8cfcdc8fa80a82f1ca4ff41d771051fb1e36f570e701942db383d24968ce
5
5
  SHA512:
6
- metadata.gz: 987251d8d2d028fabdd77337bb25c34219361f77087b0d60b6210fbbd2b9c7c7ec724fd377d7a5baf887b1f2512f5138314718df72419e2986df5975e0381940
7
- data.tar.gz: e18031687205f914cc169b42472edbf9c237b9e3d0747bb8517027584ca2d26e41f4ec6203ec96c5a62b5483f16e2c81415a22648bfd2eeee76af6fa0fadaf2d
6
+ metadata.gz: a49c09841a1544c702b843ba8e7caacf5ee60704ebf1552b0ce3ef47d65e33572bc0211dbc9aa84b629501b82c277fb3695e4a3d8aa4122ec07debd53d74e00e
7
+ data.tar.gz: '0954202700ca78f11fd4764e64ed60bc761fbc360d9fcc3fe300df65bb8db95e96b228900e490a93672294b45663fb080b201c2e387f2a27b4d4b6284d819d13'
@@ -286,6 +286,8 @@ dl.flex_dl
286
286
  flex-basis: 20%
287
287
  text-align: right
288
288
  padding-right: 2em
289
+ max-width: 20%
290
+ text-overflow: ellipsis
289
291
  & > dd
290
292
  flex-basis: 80%
291
293
  flex-grow: 1
@@ -1,4 +1,7 @@
1
1
  %ul
2
2
  - result.each do |elem|
3
- %li= elem
3
+ - if elem.respond_to?(:link)
4
+ %li= elem.link
5
+ - else
6
+ %li= elem
4
7
 
@@ -37,24 +37,11 @@
37
37
  a
38
38
  width: 100%
39
39
 
40
- .ui.segment.stackable.bottom.attached.grid.three.column
40
+ .ui.segment.stackable.bottom.attached.grid.two.column
41
41
  .ui.column
42
42
  = partial_render('partials/footers/bsc')
43
+ -#
43
44
  .ui.column
44
45
  = partial_render('partials/footers/ntnu')
45
46
  .ui.column
46
47
  = partial_render('partials/footers/cnio')
47
- -#.ui.segment
48
- .image
49
- %a(href="http://www.cnio.es/")
50
- %img(src="/file/cnio.png" height='115px' width='241px')
51
- .content
52
- .ui.header
53
- CNIO. Centro Nacional de Investigaciones Oncologicas (Spanish National Cancer Research Center)
54
- .description
55
- %span.group Structural Computational Biology Group
56
- %br/
57
- %span.address C/ Melchor Fernandez Almagro, 3, E-28029 Madrid
58
- .meta.contact
59
- %span.who miguel.vazquez
60
- %span.where cnio.es
@@ -2,19 +2,19 @@
2
2
  %a(href="http://www.bsc.es/")
3
3
  %img(src="/file/bsc.svg")
4
4
  .content
5
- .ui.header
5
+ -#.ui.header
6
6
  :sass
7
7
  span.bsc
8
8
  font-weight: bold
9
9
  span.cns
10
10
  font-style: italic
11
11
  font-weight: normal
12
-
12
+ -#
13
13
  %span.bsc Barcelona Supercomputing Center
14
14
  %span.cns Centro Nacional de Supercomputación
15
15
 
16
16
  .description
17
- %span.group Genome Informatics Unit
17
+ %span.group Genome Informatics Unit. Life sciences Department.
18
18
  %span.address Nexus II Building. C/ Jordi Girona, 29. 08034 Barcelona (Spain)
19
19
 
20
20
  .meta.contact
@@ -2,23 +2,26 @@
2
2
  - id = "tab_menu_" + rand(1000).to_s unless defined? id and not id.nil?
3
3
  - active = false unless defined? active and not active.nil?
4
4
  - active = headers.first if TrueClass === active
5
- .ui.top.attached.tabular.stackable.menu(id=id)
5
+ .tabs(id=id)
6
+ .ui.top.attached.tabular.stackable.menu
7
+ - headers.each do |header|
8
+ - code = codes[header] ||= Misc.digest([header, id]*"-")
9
+ - tab_active = (active and active == header) ? 'active' : ''
10
+ .ui.item(data-tab=code class=tab_active)= header
11
+
6
12
  - headers.each do |header|
7
- - code = codes[header] ||= Misc.digest([header, id]*"-")
13
+ - code = codes[header]
14
+ - next if content[header].nil?
8
15
  - tab_active = (active and active == header) ? 'active' : ''
9
- .ui.item(data-tab=code class=tab_active)= header
10
-
11
- - headers.each do |header|
12
- - code = codes[header]
13
- - next if content[header].nil?
14
- - tab_active = (active and active == header) ? 'active' : ''
15
- .ui.tab.bottom.attached.segment.content(data-tab=code class=tab_active)
16
- = content[header]
16
+ .ui.tab.bottom.attached.segment.content(data-tab=code class=tab_active)
17
+ = content[header]
17
18
 
18
19
  :deferjs
19
- $("##{id} > .item[data-tab]").tab()
20
+ //$("##{id} > .item[data-tab]").tab()
21
+
22
+ $("##{id} > .menu > .item[data-tab]").tab({"context": "##{id}"})
20
23
 
21
- $('##{id} > .item[data-tab=close]').click(function(item){
24
+ $('##{id} > .menu > .item[data-tab=close]').click(function(item){
22
25
  var tool = $(this).parents('.cytoscape_tool').first()
23
26
  tool.find('.tab.active, .item.active').removeClass('active')
24
27
  return false
@@ -1,7 +1,8 @@
1
1
  - id ||= "figure-" << (1000 * rand).to_i.to_s
2
2
 
3
- - height ||= "300px"
4
- - width ||= "300px"
3
+ - size ||= "300px"
4
+ - height ||= size
5
+ - width ||= size
5
6
  - title ||= nil
6
7
  - caption ||= nil
7
8
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  - url = @fullpath
10
10
 
11
- %svg(id=id)
11
+ %svg.nvd3(id=id)
12
12
 
13
13
  :ruby
14
14
  setup ||=<<-EOF
@@ -33,12 +33,15 @@
33
33
  var selector = "svg#" + id
34
34
  var uri = add_parameter(rbbt.url_add_script_name('#{url}'), '_file', '#{data_id}')
35
35
 
36
+
36
37
  var resolution = #{resolution}
37
38
  var svg = $(selector)
38
39
  var figure = svg.parent('.figure')
39
40
  var W = figure.innerWidth()
40
41
  var H = figure.innerHeight()
41
42
 
43
+ $(selector).css('height', H).css('width', W)
44
+
42
45
  nv.addGraph({
43
46
  generate: function(){
44
47
  #{setup}
@@ -56,9 +59,11 @@
56
59
 
57
60
  nv.utils.windowResize(graph.update);
58
61
 
62
+ graph.update
59
63
  return graph;
60
64
  },
61
65
  })
66
+
62
67
  })
63
68
 
64
69
 
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.137
4
+ version: 1.8.138
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-13 00:00:00.000000000 Z
11
+ date: 2020-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake