Skip to content

Commit

Permalink
HTML UI: list available drivers in HTML page
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/deltacloud/trunk@1063039 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
David Lutterkort committed Jan 24, 2011
1 parent 5a5b634 commit 63f3903
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/server.rb
Expand Up @@ -78,6 +78,7 @@
get '/api/drivers\/?' do
respond_to do |format|
format.xml { haml :"api/drivers" }
format.html { haml :"api/drivers" }
end
end

Expand Down
14 changes: 14 additions & 0 deletions server/views/api/drivers.html.haml
@@ -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]

0 comments on commit 63f3903

Please sign in to comment.