summaryrefslogtreecommitdiff
path: root/views/models.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-02-23 17:48:53 +0100
committerChristoph Helma <helma@in-silico.de>2010-02-23 17:48:53 +0100
commit88e78774eb287f50c1a9faa52a53bda1cc112a7e (patch)
tree54788e08fec19ad1a6e01a3a726d2180ce5e055e /views/models.haml
parentb733e8e66e32dd0a4c8336df7253c39911131cd7 (diff)
some test issues resolved
Diffstat (limited to 'views/models.haml')
-rw-r--r--views/models.haml17
1 files changed, 16 insertions, 1 deletions
diff --git a/views/models.haml b/views/models.haml
index cb24f86..e1c9404 100644
--- a/views/models.haml
+++ b/views/models.haml
@@ -1,7 +1,18 @@
+-# :javascript
+ function deletemodel(uri) {
+ var xmlhttp;
+ return confirm("Are you sure?");
+ xmlhttp=new XMLHttpRequest();
+ xmlhttp.open('DELETE',uri,false)
+ xmlhttp.send(null);
+ }
+
%p Get an overview about ToxCreate models. This page is refreshed every 15 seconds to update the model status.
- @models.each do |model|
+ - uri = url_for("/model/#{model.id}", :full)
%h2
= model.name
+ -#%button{:onclick => "deletemodel('#{uri}')"} delete
%dl
%dt Status:
%dd
@@ -15,7 +26,11 @@
%dd= model.messages
%dt URI:
%dd
- %a{:href => model.uri, :accept => "application/rdf+xml"} #{model.uri}
+ - if model.uri
+ %a{:href => model.uri, :accept => "application/rdf+xml"} #{model.uri}
+ %em (model representation in OWL-DL - experts only)
+ - else
+ %em model under construction
%dt Validation:
%dd
%em