Skip to content

Commit

Permalink
make web interface doe dydra
Browse files Browse the repository at this point in the history
  • Loading branch information
markwilkinson committed Nov 28, 2024
1 parent ddada1a commit 028f821
Show file tree
Hide file tree
Showing 67 changed files with 20,833 additions and 442 deletions.
11 changes: 11 additions & 0 deletions VP/wrapped_services/diadra/app/controllers/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ def set_routes()

get "/diadra/lookup" do

unless params["species"]
redirect "/diadra/interface/form"
halt
end

species = params["species"] ? params["species"].strip : ""

@species = species
@resp = species_lookup(species: species) # "./lib/vp"

request.accept.each do |type|
Expand All @@ -21,6 +28,10 @@ def set_routes()
end
end

get "/diadra/interface/form" do
halt erb :lookupform
end

get "/diadra/interface" do
redirect "https://wilkinsonlab.github.io/FLAIR-GG/VP/interfaces/wrapped_services.yaml"
end
Expand Down
14 changes: 0 additions & 14 deletions VP/wrapped_services/diadra/app/views/_dataservices.erb

This file was deleted.

45 changes: 39 additions & 6 deletions VP/wrapped_services/diadra/app/views/_footer.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
<footer class="branding">
<small><strong><a href="https://wilkinsonlab.github.io/FLAIR-GG/">Project Homepage</a></strong></small><br/>
<small>&copy; 2023/2024 <strong>Mark D Wilkinson</strong></small><br/>
<small>Proyecto TED2021-130788B-I00 financiado por MCIN/AEI /10.13039/501100011033 y por la Unión Europea NextGeneration EU/PRTR</small><br/>
<img src="/images/ted.png">
</footer>



<footer class="c-footer">
<br />
<br />

<h3>Funding</h3>

<b>TED2021-130788B-I00</b>
<br />
Proyecto TED2021-130788B-I00 financed by
<br />
MCIN/AEI /10.13039/501100011033 and by the European Union Next Generation EU/ PRTR.
<br />
<img width="300" src="/images/ted-logo.png" />
<br />
<br />
<br />
The FLAIR-GG computational infrastructure is supported by the
<br />"Severo Ochoa Program for Centres of Excellence in R&D 2022-2025" from the
Agencia Estatal de Investigación of Spain, awarded to the
<br />Center for Plant Biotechnology and Genomics (CBGP UPM-INIA/CSIC).
<br />
<br />
<br />
<br />
<b>Principal Investigators:</b>
<br />
<br />
Moreno Vazquez, Santiago<br />
UPM grupo: Biodiversidad y conservación de recursos fitogenéticos
<br /><br />
Wilkinson, Mark Denis <br />
CBGP UPM-INIA/CSIC. <br />
UPM grupo: Abordajes Multidisciplinares en la Interfaz Planta-Microorganismo<br />
</footer>

</body>
27 changes: 14 additions & 13 deletions VP/wrapped_services/diadra/app/views/_head.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<HEAD>
<title>FLAIR-GG Wrapped Services: Diadra</title>

<title>FLAIR-GG Virtual Platform</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/flexbox.css" />
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900" rel="stylesheet">

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</HEAD>

<link rel="stylesheet" href="/stylesheets/main.css" />
<link rel="stylesheet" href="/stylesheets/all.css" />
<link rel="stylesheet" href="/stylesheets/alvaro.css" />
<link rel="stylesheet" href="/stylesheets/regular.css" />
<link rel="stylesheet" href="/stylesheets/solid.css" />


</head>
<body>
<header class="c-header">
<br />
<img width="500" src="/images/flair-gg-logo.png" />
<br />
<br />
<br />
<h1>FLAIR-GG Diadra Service</h1>
</header>
16 changes: 0 additions & 16 deletions VP/wrapped_services/diadra/app/views/_sidebar.erb

This file was deleted.

107 changes: 0 additions & 107 deletions VP/wrapped_services/diadra/app/views/discovered_layout.erb

This file was deleted.

54 changes: 0 additions & 54 deletions VP/wrapped_services/diadra/app/views/discovered_layout.erb_BAK

This file was deleted.

51 changes: 0 additions & 51 deletions VP/wrapped_services/diadra/app/views/execution_results_layout.erb

This file was deleted.

1 change: 0 additions & 1 deletion VP/wrapped_services/diadra/app/views/layout.erb

This file was deleted.

36 changes: 36 additions & 0 deletions VP/wrapped_services/diadra/app/views/lookupform.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

<%= erb :_head %>


<section class="c-posts">

<article class="c-posts__item">

<h2>Enter Taxon Name </h2>
<br/>
<form action="/diadra/lookup" method="GET">
<input type="text" width="40" name="species"/>
<br/>
<input type="submit" value="Species Lookup"/>
</form>


</article>

</section>


<%= erb :_footer %>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<!--[if lt IE 7]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->
</body>
</html>
Loading

0 comments on commit 028f821

Please sign in to comment.