You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2011/01/24 23:34:54 UTC

svn commit: r1063039 - in /incubator/deltacloud/trunk/server: server.rb views/api/drivers.html.haml

Author: lutter
Date: Mon Jan 24 22:34:54 2011
New Revision: 1063039

URL: http://svn.apache.org/viewvc?rev=1063039&view=rev
Log:
HTML UI: list available drivers in HTML page

Added:
    incubator/deltacloud/trunk/server/views/api/drivers.html.haml
Modified:
    incubator/deltacloud/trunk/server/server.rb

Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=1063039&r1=1063038&r2=1063039&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Mon Jan 24 22:34:54 2011
@@ -78,6 +78,7 @@ get '/' do redirect url_for('/api'), 301
 get '/api/drivers\/?' do
   respond_to do |format|
     format.xml { haml :"api/drivers" }
+    format.html { haml :"api/drivers" }
   end
 end
 

Added: incubator/deltacloud/trunk/server/views/api/drivers.html.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/views/api/drivers.html.haml?rev=1063039&view=auto
==============================================================================
--- incubator/deltacloud/trunk/server/views/api/drivers.html.haml (added)
+++ incubator/deltacloud/trunk/server/views/api/drivers.html.haml Mon Jan 24 22:34:54 2011
@@ -0,0 +1,14 @@
+%h1
+  Available Drivers
+
+%table.display
+  %thead
+    %tr
+      %th ID
+      %th Name
+  %tbody
+    - DRIVERS.each do |id, details|
+      %tr
+        %td{ :width => '20%' }
+          %tt= id
+        %td= details[:name]