t2-web 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +7 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/bin/t2_webapp.rb +6 -6
- data/doc/rdoc/CHANGES.html +13 -0
- data/doc/rdoc/README.html +1 -1
- data/doc/rdoc/created.rid +3 -3
- data/doc/rdoc/index.html +1 -1
- data/public/css/form.css +16 -1
- data/public/images/bullet_go.png +0 -0
- data/views/form.haml +13 -47
- metadata +6 -5
data/CHANGES
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= Changes log for the Taverna via the Web Gem
|
2
2
|
|
3
|
+
== Version 0.0.8
|
4
|
+
* Removed "Workflow: " from form's header
|
5
|
+
* Changed image for please not bullet points
|
6
|
+
* Cleaned form.haml from old comments
|
7
|
+
* Added footer in form.haml with acknowledgements
|
8
|
+
* Made "workflow by USER" a link to point to user in myExperiment
|
9
|
+
|
3
10
|
== Version 0.0.7
|
4
11
|
* Updated sinatra dependency
|
5
12
|
* Updated copyright year
|
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
Authors:: Konstantinos Karasavvas
|
5
|
-
Gem Version:: 0.0.
|
5
|
+
Gem Version:: 0.0.8
|
6
6
|
Contact:: mailto:kostas.karasavvas@nbic.nl
|
7
7
|
Licence:: MIT (See LICENCE or http://www.opensource.org/licenses/mit-license)
|
8
8
|
Copyright:: (c) 2012 Netherlands Bioinformatics Centre, The Netherlands
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ require 'rdoc/task'
|
|
12
12
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
14
14
|
s.name = 't2-web'
|
15
|
-
s.version = '0.0.
|
15
|
+
s.version = '0.0.8'
|
16
16
|
s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
|
17
17
|
s.summary = 'Web application that generates a Web UI form for a Taverna2 workflow, given its myExperiment id, for ease of execution. The only requirement for the user is a web browser.'
|
18
18
|
s.description = s.summary
|
data/bin/t2_webapp.rb
CHANGED
@@ -8,8 +8,9 @@ require 'rest-client'
|
|
8
8
|
require 't2-server'
|
9
9
|
require 'myexperiment-rest'
|
10
10
|
require 'cgi'
|
11
|
-
#require "web
|
11
|
+
#require "t2-web" TODO: move whole of WebT2App in lib
|
12
12
|
|
13
|
+
# TODO: add constants.rb file in lib for all constants (e.g. myExp user URL, other URLs
|
13
14
|
|
14
15
|
class WebT2App < Sinatra::Base
|
15
16
|
|
@@ -18,7 +19,7 @@ class WebT2App < Sinatra::Base
|
|
18
19
|
|
19
20
|
set :port, 9494
|
20
21
|
set :views, File.dirname(__FILE__) + '/../views'
|
21
|
-
set :
|
22
|
+
set :public_folder, File.dirname(__FILE__) + '/../public'
|
22
23
|
|
23
24
|
# can be used from routes and views (haml)
|
24
25
|
helpers do
|
@@ -76,17 +77,16 @@ END
|
|
76
77
|
<div id='header'>
|
77
78
|
<table class='header'>
|
78
79
|
<tr>
|
79
|
-
<td>
|
80
|
+
<td class='left'>
|
80
81
|
<img alt='NBIC logo' src='/images/nbic_logo.gif' />
|
81
82
|
</td>
|
82
83
|
<td>
|
83
84
|
<table class='header-title'>
|
84
85
|
<tr>
|
85
|
-
<td class='header-title'
|
86
|
+
<td class='header-title'>#{@my_exp_wkf.title}</td>
|
86
87
|
</tr>
|
87
88
|
<tr>
|
88
|
-
<td class='right'>workflow by
|
89
|
-
|
89
|
+
<td class='right'>workflow by <a href="http://www.myexperiment.org/users/#{@my_exp_usr.id}.html" target="_blank">#{@my_exp_usr.name}</a></td>
|
90
90
|
</tr>
|
91
91
|
</table>
|
92
92
|
</td>
|
data/doc/rdoc/CHANGES.html
CHANGED
@@ -76,6 +76,19 @@
|
|
76
76
|
|
77
77
|
<h1>Changes log for the Taverna via the Web Gem</h1>
|
78
78
|
|
79
|
+
<h2>Version 0.0.8</h2>
|
80
|
+
<ul><li>
|
81
|
+
<p>Removed “Workflow: ” from form’s header</p>
|
82
|
+
</li><li>
|
83
|
+
<p>Changed image for please not bullet points</p>
|
84
|
+
</li><li>
|
85
|
+
<p>Cleaned form.haml from old comments</p>
|
86
|
+
</li><li>
|
87
|
+
<p>Added footer in form.haml with acknowledgements</p>
|
88
|
+
</li><li>
|
89
|
+
<p>Made “workflow by USER” a link to point to user in myExperiment</p>
|
90
|
+
</li></ul>
|
91
|
+
|
79
92
|
<h2>Version 0.0.7</h2>
|
80
93
|
<ul><li>
|
81
94
|
<p>Updated sinatra dependency</p>
|
data/doc/rdoc/README.html
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
<p>Konstantinos Karasavvas</p>
|
81
81
|
</td></tr><tr><td class="rdoc-term"><p>Gem Version</p></td>
|
82
82
|
<td>
|
83
|
-
<p>0.0.
|
83
|
+
<p>0.0.8</p>
|
84
84
|
</td></tr><tr><td class="rdoc-term"><p>Contact</p></td>
|
85
85
|
<td>
|
86
86
|
<p><a href="mailto:kostas.karasavvas@nbic.nl">kostas.karasavvas@nbic.nl</a></p>
|
data/doc/rdoc/created.rid
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Tue,
|
1
|
+
Tue, 20 Mar 2012 17:19:23 +0100
|
2
2
|
LICENSE Fri, 22 Jul 2011 16:33:48 +0200
|
3
|
-
README Tue,
|
4
|
-
CHANGES Tue,
|
3
|
+
README Tue, 20 Mar 2012 17:19:01 +0100
|
4
|
+
CHANGES Tue, 20 Mar 2012 17:18:51 +0100
|
data/doc/rdoc/index.html
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
<p>Konstantinos Karasavvas</p>
|
30
30
|
</td></tr><tr><td class="rdoc-term"><p>Gem Version</p></td>
|
31
31
|
<td>
|
32
|
-
<p>0.0.
|
32
|
+
<p>0.0.8</p>
|
33
33
|
</td></tr><tr><td class="rdoc-term"><p>Contact</p></td>
|
34
34
|
<td>
|
35
35
|
<p><a href="mailto:kostas.karasavvas@nbic.nl">kostas.karasavvas@nbic.nl</a></p>
|
data/public/css/form.css
CHANGED
@@ -32,6 +32,17 @@ table.inputs {
|
|
32
32
|
margin-right: auto;
|
33
33
|
}
|
34
34
|
|
35
|
+
table.acknowledgements {
|
36
|
+
width: 500px;
|
37
|
+
border-collapse: collapse;
|
38
|
+
/* With equal left-right margins table will be aligned in the centre */
|
39
|
+
margin-left: auto;
|
40
|
+
margin-right: auto;
|
41
|
+
font-size: 10pt;
|
42
|
+
font-style: italic;
|
43
|
+
text-align: center;
|
44
|
+
}
|
45
|
+
|
35
46
|
th.inputs {
|
36
47
|
font-size: 120%;
|
37
48
|
background-color: #f0f0f0;
|
@@ -42,7 +53,11 @@ th.inputs {
|
|
42
53
|
|
43
54
|
td.inputs {
|
44
55
|
padding: 5px;
|
45
|
-
vertical-align:
|
56
|
+
vertical-align: middle;
|
57
|
+
}
|
58
|
+
|
59
|
+
td.left {
|
60
|
+
text-align: left;
|
46
61
|
}
|
47
62
|
|
48
63
|
td.right {
|
Binary file
|
data/views/form.haml
CHANGED
@@ -12,21 +12,7 @@
|
|
12
12
|
|
13
13
|
= generate_header_table(@my_exp_wkf, @my_exp_usr)
|
14
14
|
|
15
|
-
-# TODO: should move coding to controller and
|
16
|
-
-#header
|
17
|
-
%table.header
|
18
|
-
%tr
|
19
|
-
%td
|
20
|
-
%img{:src => "/images/nbic_logo.gif", :alt => "NBIC logo"}
|
21
|
-
%td
|
22
|
-
%table.header-title
|
23
|
-
%tr
|
24
|
-
%td.header-title Workflow: #{@my_exp_wkf.title}
|
25
|
-
- if #{@my_exp_wkf.user.name}
|
26
|
-
%tr
|
27
|
-
%td.right workflow by #{@my_exp_wkf.user.name}
|
28
|
-
%td
|
29
|
-
%img.right{:src => "/images/lumc_logo2.png", :alt => "LUMC logo"}
|
15
|
+
-# TODO: should move coding to controller and reduce haml's "-" for logic inside the template!!!
|
30
16
|
|
31
17
|
%br
|
32
18
|
#inputs
|
@@ -81,32 +67,6 @@
|
|
81
67
|
%td.inputs
|
82
68
|
= @my_exp_wkf.description
|
83
69
|
|
84
|
-
-# %br
|
85
|
-
-# %br
|
86
|
-
-#inputs
|
87
|
-
- if @my_exp_wkf.inputs.size >=1
|
88
|
-
%table.inputs
|
89
|
-
%tr
|
90
|
-
%th.inputs
|
91
|
-
Input
|
92
|
-
%th.inputs
|
93
|
-
Description
|
94
|
-
%th.inputs
|
95
|
-
Examples
|
96
|
-
- @my_exp_wkf.inputs.each do |input|
|
97
|
-
%tr
|
98
|
-
%td.inputs
|
99
|
-
= input.name
|
100
|
-
%td.inputs
|
101
|
-
- if input.descriptions.size >=1
|
102
|
-
- input.descriptions.each do |descr|
|
103
|
-
= descr
|
104
|
-
%br
|
105
|
-
%td.inputs
|
106
|
-
- if input.examples.size >=1
|
107
|
-
- input.examples.each do |ex|
|
108
|
-
= ex
|
109
|
-
%br
|
110
70
|
|
111
71
|
%br
|
112
72
|
%br
|
@@ -147,27 +107,33 @@
|
|
147
107
|
%th.inputs
|
148
108
|
%tr
|
149
109
|
%td.inputs
|
150
|
-
%img{:src => "/images/
|
110
|
+
%img{:src => "/images/bullet_go.png", :alt => "Important!" }
|
151
111
|
%td.inputs
|
152
112
|
Some workflows are not up-to-date or have dependencies that cannot be met by the specific Taverna server that you specified during generation of this tool. You can make sure that the workflow is valid by running it in the Taverna Workbench first to confirm that it works before running it via the Web.
|
153
113
|
%tr
|
154
114
|
%td.inputs
|
155
|
-
%img{:src => "/images/
|
115
|
+
%img{:src => "/images/bullet_go.png", :alt => "Important!" }
|
156
116
|
%td.inputs
|
157
117
|
There might be some repetitions in the workflow description in some of the generated workflows. This is due to a backwards compatibility issue on the myExperiment repository which keeps the old descriptions to make sure that no information is lost.
|
158
118
|
%tr
|
159
119
|
%td.inputs
|
160
|
-
%img{:src => "/images/
|
120
|
+
%img{:src => "/images/bullet_go.png", :alt => "Important!" }
|
161
121
|
%td.inputs
|
162
122
|
For more information on this workflow please visit the
|
163
123
|
%a{ :href => "http://www.myExperiment.org/workflows/#{@wid}" } myExperiment website
|
164
|
-
|
124
|
+
-# if #{@my_exp_wkf.user.email}
|
165
125
|
%tr
|
166
126
|
%td.inputs
|
167
|
-
%img{:src => "/images/
|
127
|
+
%img{:src => "/images/bullet_go.png", :alt => "Important!" }
|
168
128
|
%td.inputs
|
169
129
|
For questions/comments you can also contact the workflow creator at:
|
170
130
|
%a{ :href => "mailto:#{@my_exp_usr.email}" } #{@my_exp_usr.email}
|
171
131
|
|
172
132
|
%br
|
173
|
-
|
133
|
+
|
134
|
+
#footer
|
135
|
+
%table.acknowledgements
|
136
|
+
%tr
|
137
|
+
%td.inputs
|
138
|
+
The work to generate a web form from a Taverna workflow was based on a collaboration between NBIC, myExperiment, and myGrid.
|
139
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t2-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kostas Karasavvas
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: sinatra
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- public/css/results_navigation.css
|
217
217
|
- public/images/nbic_logo.gif
|
218
218
|
- public/images/snake_transparent.gif
|
219
|
+
- public/images/bullet_go.png
|
219
220
|
- public/images/tipsy.gif
|
220
221
|
- public/images/info.png
|
221
222
|
- public/images/lumc_logo2.png
|
@@ -250,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
251
|
requirements: []
|
251
252
|
|
252
253
|
rubyforge_project:
|
253
|
-
rubygems_version: 1.
|
254
|
+
rubygems_version: 1.8.19
|
254
255
|
signing_key:
|
255
256
|
specification_version: 3
|
256
257
|
summary: Web application that generates a Web UI form for a Taverna2 workflow, given its myExperiment id, for ease of execution. The only requirement for the user is a web browser.
|