You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2011/01/22 01:02:53 UTC
[PATCH 2/5] * views/api/show.html.haml: only show collections supported by the driver
From: David Lutterkort <lu...@redhat.com>
---
server/views/api/show.html.haml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/views/api/show.html.haml b/server/views/api/show.html.haml
index 140d227..199c9fd 100644
--- a/server/views/api/show.html.haml
+++ b/server/views/api/show.html.haml
@@ -2,7 +2,7 @@
Deltacloud API #{settings.version}
%ul
- - collections.keys.sort_by { |k| k.to_s }.each do |key|
+ - driver.supported_collections.sort_by { |k| k.to_s }.each do |key|
%li
= link_to key.to_s.gsub('_', ' ').titlecase, url_for("/api/#{key}")
%dl
--
1.7.3.4